-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 963 Bytes
/
test-and-coverage.yml
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
name: Test & Coverage
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET 5 SDK
uses: actions/[email protected]
with:
dotnet-version: 5.0.x
- name: Setup .NET 6 SDK
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
- name: Test
working-directory: ./src
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Codecov
uses: codecov/[email protected]