-
-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (28 loc) · 913 Bytes
/
dotnet.yml
File metadata and controls
30 lines (28 loc) · 913 Bytes
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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Test & coverage
run: dotnet test --logger "console;verbosity=normal" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=coverage/opencover-coverage.xml
- name: Upload coverage to Codecov
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
with:
name: codecov-tulip
file: ./tests/Tulip.NETCore.Tests/coverage/opencover-coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: true