-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (31 loc) · 962 Bytes
/
build.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
name: Build & Test
on:
push:
branches: [ "master" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build&Test
run: dotnet test -f net8.0 -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --no-restore --verbosity normal
- name: Create Test Coverage Badge
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
id: create_coverage_badge
with:
label: coverage
color: brightgreen
path: tests/PowerPipe.UnitTests/TestResults/coverage.net8.0.opencover.xml
gist-filename: code-coverage.json
gist-id: 87b833b49852f7f088e1d4d913600a91
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}