Repair .NET 10 and MudBlazor migration #20
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: TLS lifecycle tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "TruthGate-Web/**" | |
| - ".github/workflows/tls-lifecycle.yml" | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "TruthGate-Web/**" | |
| - ".github/workflows/tls-lifecycle.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Restore solution | |
| run: dotnet restore TruthGate-IPFS.sln | |
| - name: Build solution | |
| run: dotnet build TruthGate-IPFS.sln --no-restore --configuration Release | |
| - name: Test TLS lifecycle | |
| id: test | |
| shell: bash | |
| run: | | |
| set +e | |
| dotnet test \ | |
| TruthGate-Web/TruthGate-Web.Tests/TruthGate-Web.Tests.csproj \ | |
| --no-restore \ | |
| --no-build \ | |
| --configuration Release \ | |
| --logger "console;verbosity=normal" \ | |
| > tls-test-output.log 2>&1 | |
| status=$? | |
| echo "status=$status" >> "$GITHUB_OUTPUT" | |
| tail -n 200 tls-test-output.log | |
| exit 0 | |
| - name: Upload test diagnostics | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tls-test-output | |
| path: tls-test-output.log | |
| if-no-files-found: error | |
| - name: Report test failure | |
| if: steps.test.outputs.status != '0' | |
| run: exit 1 |