Harden runtime playback regression coverage #4
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: SDK CSharp Coverage | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - "codex/**" | |
| paths: | |
| - "SDK/dotnet/**" | |
| - "SDK/fixtures/**" | |
| - "examples/**" | |
| - ".github/workflows/sdk-dotnet.yml" | |
| - ".github/workflows/sdk-dotnet-coverage.yml" | |
| pull_request: | |
| paths: | |
| - "SDK/dotnet/**" | |
| - "SDK/fixtures/**" | |
| - "examples/**" | |
| - ".github/workflows/sdk-dotnet.yml" | |
| - ".github/workflows/sdk-dotnet-coverage.yml" | |
| workflow_dispatch: | |
| jobs: | |
| coverage: | |
| name: Coverage 90%+ | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - run: dotnet restore SDK/dotnet/ManagedCode.Tps.slnx | |
| - run: dotnet build SDK/dotnet/ManagedCode.Tps.slnx -warnaserror --no-restore | |
| - run: dotnet test SDK/dotnet/ManagedCode.Tps.slnx --no-build --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=json /p:ThresholdType=line%2Cbranch%2Cmethod /p:Threshold=90 |