-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1 KB
/
run-tests.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
name: Run Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Nixie-Tests:
runs-on: ubuntu-latest
env:
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
GIT_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Install dotCover
run: dotnet tool install JetBrains.dotCover.GlobalTool -g
- name: Run Tests
run: (cd Nixie.Tests && dotnet dotcover test --dcOutput=NixieCoverageReport.html --dcReportType=HTML)
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: |
Nixie.Tests/NixieCoverageReport
Nixie.Tests/NixieCoverageReport.html