-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 1.03 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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Clean
run: dotnet clean && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test -p:CollectCoverage=true -p:CoverletOutputFormat=opencover --no-build --verbosity normal
- name: Create code coverage badge
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
id: code_coverage_badge
with:
label: coverage
color: brightgreen
path: tests/Toimik.RobotsProtocol.Tests/coverage.opencover.xml
gist-filename: RobotsProtocol-coverage.json
gist-id: c331314aee27fa8f1d49a3870142f8b4
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}