-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 951 Bytes
/
codecov.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
34
35
36
37
38
name: Codecov
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cover:
runs-on: ubuntu-latest
env:
Builder: 1
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore Application/BocchiTracker.UnitTests.sln
- name: Build unit Test
run: dotnet build --no-restore Application/BocchiTracker.UnitTests.sln
- name: Execute unit test
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect:"XPlat Code Coverage" --no-build --verbosity normal Application/BocchiTracker.UnitTests.sln
- name: upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}