merged #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Regression Tests - .NET Core | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - report | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| run-regression-tests-dotnet: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout nunit3-vs-adapter.issues | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: nunit/nunit3-vs-adapter.issues | |
| path: RegrTesting | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| 8.0.x | |
| 6.0.x | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/global.json', '**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Build IssueRunner | |
| run: | | |
| cd RegrTesting/Tools | |
| dotnet build -c Release | |
| - name: Run regression tests (.NET Core) | |
| continue-on-error: true | |
| run: | | |
| cd RegrTesting/Tools/IssueRunner/bin/Release/net10.0 | |
| ./IssueRunner run --scope RegressionOnly --skip-netfx --timeout 900 --nunit-only --verbosity Verbose --root $GITHUB_WORKSPACE | tee $GITHUB_WORKSPACE/RegrTesting/TestResults-consolelog.md | |
| - name: Generate test report | |
| if: always() | |
| run: | | |
| cd RegrTesting/Tools/IssueRunner/bin/Release/net10.0 | |
| ./IssueRunner report generate --root $GITHUB_WORKSPACE | |
| - name: Publish summary | |
| if: always() | |
| run: | | |
| cat TestReport.md >> "$GITHUB_STEP_SUMMARY" | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dotnet-regression-results | |
| path: | | |
| results.json | |
| TestReport.md | |
| RegrTesting/TestResults-consolelog.md | |
| if-no-files-found: warn | |
| - name: Check for regressions | |
| run: | | |
| cd RegrTesting/Tools/IssueRunner/bin/Release/net10.0 | |
| ./IssueRunner report check-regressions --root $GITHUB_WORKSPACE |