Files
Just.Railway/.gitea/workflows/test-dotnet.yaml
just 595b63dc23
All checks were successful
.NET Test / test (push) Successful in 2m2s
support for dotnet9 compilation
2025-07-29 23:22:28 +04:00

42 lines
853 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
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: https://github.com/actions/setup-dotnet@v3
with:
dotnet-version: 9.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --logger trx --results-directory "TestResults-9.x"
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: dotnet-results-9.x
path: TestResults-9.x
if: ${{ always() }}
retention-days: 30