-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.05 KB
/
sdk-dotnet-coverage.yml
File metadata and controls
38 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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