-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (52 loc) · 1.99 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Build all
run: dotnet build --configuration Release
############ Core ############
- name: Core tests
run: >
dotnet test "tests/OrleanSpaces.Tests/OrleanSpaces.Tests.csproj" --configuration Release --no-build -v:normal
-p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover
- name: Core tests coverage
uses: simon-k/[email protected]
id: core_badge
with:
label: coverage
color: brightgreen
path: tests/OrleanSpaces.Tests/TestResults/coverage.opencover.xml
gist-filename: orleanspaces-core.json
gist-id: f1e76e073c791df73243a7f113a7e37f
gist-auth-token: ${{ secrets.GIST_TOKEN }}
############ Analyzers ############
- name: Analyzers tests
run: >
dotnet test "tests/OrleanSpaces.Analyzers.Tests/OrleanSpaces.Analyzers.Tests.csproj" --configuration Release --no-build -v:normal
-p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover
-p:Exclude=[OrleanSpaces]* # removing all types (*) from the assembly (OrleanSpaces) from code coverage, as it is used only as a reference source for the analyzer project.
- name: Analyzers tests coverage
uses: simon-k/[email protected]
id: analyzers_badge
with:
label: coverage
color: brightgreen
path: tests/OrleanSpaces.Analyzers.Tests/TestResults/coverage.opencover.xml
gist-filename: orleanspaces-analyzers.json
gist-id: f1e76e073c791df73243a7f113a7e37f
gist-auth-token: ${{ secrets.GIST_TOKEN }}
#######################