-
-
Notifications
You must be signed in to change notification settings - Fork 62
37 lines (32 loc) · 959 Bytes
/
CodeCoverage.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
name: code coverage
on:
push:
branches:
- master
paths:
- '.github/workflows/CodeCoverage.yml'
- 'source/DefaultEcs/**'
- 'source/DefaultEcs.Test/**'
jobs:
code_coverage:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Collect coverage for net7.0
run: dotnet test source\DefaultEcs.Test\DefaultEcs.Test.csproj -c Release -f net7.0
env:
CollectCoverage: true
CoverletOutputFormat: lcov
CoverletOutput: ..\..\build\lcov.info
Exclude: "[*]DefaultEcs.Internal.Diagnostics*"
TEST: true
- name: Upload to coverall
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: 'build\lcov.net7.0.info'