-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.3 KB
/
dotnet.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
name: NET
on:
push:
branches: [ "master" ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ "master" ]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build-test-and-coverage:
permissions:
pages: write
id-token: write
runs-on: ubuntu-24.04
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Run ReportGenerator
env:
ReportGenVersion: 5.4.4
NetVersion: net8.0
run: dotnet $HOME/.nuget/packages/reportgenerator/$ReportGenVersion/tools/$NetVersion/ReportGenerator.dll -reports:SharpFractionsTest/coverage.info -targetdir:covreport -reporttypes:"Html;JsonSummary"
- name: Upload ReportGen artifact
uses: actions/upload-pages-artifact@v3
with:
name: ReportGenerator
path: covreport
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
artifact_name: ReportGenerator