-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
41
42
43
name: CI / Coverage
on:
workflow_dispatch:
pull_request:
branches:
- '**'
push:
branches:
- master
env:
NX_CACHE: nx-cache
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install deps
uses: ./.github/workflows/composite/net
- name: Restore .NET Dependencies
run: dotnet restore --nologo --locked-mode
- name: Build
run: dotnet build -c Release --no-restore --nologo /p:CopyLocalLockFileAssemblies=true
- name: dotnet test
run: dotnet test -c Release --no-build --nologo /p:CollectCoverage=true /p:CoverletOutput=./coverage/ /p:CoverletOutputFormat=lcov
- name: Send reports to Codeclimate
uses: paambaati/[email protected]
if: ${{ hashFiles('test/**/coverage/coverage.info') }}
env:
CC_TEST_REPORTER_ID: 1a61ea2fb28c8abe9961c5f2678c063d656d29ac41cc2b4614d7c2eafa576c21
with:
coverageLocations: test/**/coverage/coverage.info:lcov