Files
Just.Railway/.gitea/workflows/test-dotnet.yaml
T
just 46487a4794
.NET Test / .NET tests (push) Successful in 2m4s
fixed test artifacts upload
2026-07-12 20:32:51 +04:00

49 lines
1002 B
YAML

name: .NET Test
on:
push:
branches: [ main ]
tags-ignore:
- '**'
paths-ignore:
- 'README.md'
- '.gitea/workflows/publish-*.yaml'
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
name: .NET tests
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore --disable-parallel
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal --report-xunit-trx
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: Raliway.Tests/**/TestResults/**/*.trx
if: ${{ always() }}
retention-days: 3