Bump xunit.analyzers from 1.27.0 to 2.0.0 #26
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| windows: | |
| name: windows-${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-2022, windows-2025] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.0 | |
| - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 | |
| with: | |
| dotnet-version: 10.0.101 | |
| - name: Verify installer security invariants on Windows PowerShell 5.1 | |
| shell: powershell | |
| run: ./scripts/tests/Test-Installer.ps1 | |
| - name: Verify RFC 3161 signer binding on PowerShell 7 | |
| shell: pwsh | |
| run: ./scripts/tests/Test-Rfc3161Timestamp.ps1 | |
| - name: Restore | |
| run: dotnet restore PortCVE.sln --locked-mode | |
| - name: Verify formatting | |
| run: dotnet format PortCVE.sln --verify-no-changes --no-restore | |
| - name: Build | |
| run: dotnet build PortCVE.sln -c Release --no-restore | |
| - name: Test | |
| run: dotnet test PortCVE.sln -c Release --no-build --logger "trx;LogFileName=tests.trx" --collect "XPlat Code Coverage" --results-directory TestResults | |
| - name: Publish Windows x64 | |
| run: dotnet publish src/PortCVE/PortCVE.csproj -c Release -r win-x64 --self-contained true --no-build -o artifacts/win-x64 | |
| - name: Smoke test | |
| shell: pwsh | |
| run: | | |
| ./artifacts/win-x64/portcve.exe --version | |
| $json = ./artifacts/win-x64/portcve.exe snapshot --no-firewall 2>$null | ConvertFrom-Json | |
| if ($json.schema_version -ne 1) { throw 'Unexpected snapshot schema.' } | |
| - name: Verify authorized remote loopback workflow | |
| shell: powershell | |
| run: ./scripts/Test-RemoteHostIntegration.ps1 -SkipBuild -PortCVEPath ./artifacts/win-x64/portcve.exe | |
| - name: Verify daily-workflow performance budgets | |
| shell: powershell | |
| run: ./scripts/Test-Performance.ps1 -PortCVEPath ./artifacts/win-x64/portcve.exe -LocalIterations 5 -RemotePortCount 256 -EnforceBudgets | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.0 | |
| with: | |
| name: test-results-${{ matrix.os }} | |
| path: TestResults/ | |
| - name: Upload smoke artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.0 | |
| with: | |
| name: portcve-win-x64-${{ matrix.os }} | |
| path: artifacts/win-x64/portcve.exe |