pipeline fix
Some checks failed
.NET Test / .NET 9.0 (push) Failing after 42s
.NET Test / .NET 8.0 (push) Has been cancelled

This commit is contained in:
2025-11-11 19:01:52 +04:00
parent e28fc62b31
commit 034a88ba8f

View File

@@ -14,34 +14,35 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: .NET ${{ matrix.dotnet-version }}
strategy:
matrix:
dotnet-version: [ '8.x', '9.x' ]
dotnet-version: [ '8.0', '9.0' ]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v5
- name: Setup .NET ${{ matrix.dotnet-version }}
- name: Setup .NET
uses: https://github.com/actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: ${{ matrix.dotnet-version }}.x
- name: Restore dependencies
run: dotnet restore
# - name: Restore dependencies
# run: dotnet restore
- name: Build
run: dotnet build --no-restore
run: dotnet build --framework net${{ matrix.dotnet-version }} --configuration Release --project ./Core.Tests/Core.Tests.csproj
- name: Test
run: dotnet test --no-build --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
run: dotnet run --no-build --framework net${{ matrix.dotnet-version }} --configuration Release --project ./Core.Tests/Core.Tests.csproj -- -trx results-net${{ matrix.dotnet-version }}.trx
- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
name: dotnet-results-${{ matrix.dotnet-version }}
path: TestResults-${{ matrix.dotnet-version }}
name: results-net${{ matrix.dotnet-version }}
path: results-net${{ matrix.dotnet-version }}.trx
if: ${{ always() }}
retention-days: 30