-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (35 loc) · 1007 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (35 loc) · 1007 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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x.x
- name: Install dependencies
run: dotnet restore
working-directory: ./src/SharpCode
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src/SharpCode
- name: Run unit tests and collect code coverage
run: >
dotnet test
--verbosity diag
/p:CollectCoverage=true
/p:Exclude="[*]SharpCode.*Exception"
/p:CoverletOutput=../../coverage/
/p:CoverletOutputFormat=cobertura
working-directory: ./src/SharpCode.Test
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1.0.13
with:
file: ./coverage/coverage.cobertura.xml