Skip to content

Repair .NET 10 and MudBlazor migration #20

Repair .NET 10 and MudBlazor migration

Repair .NET 10 and MudBlazor migration #20

Workflow file for this run

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