-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (49 loc) · 1.3 KB
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test_and_check_coverage:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: "Test"
working-directory: Fronter.NET.Tests
shell: pwsh
run: |
$env:CoverletOutput='./TestResults/coverage.info'
$env:CoverletOutputFormat='lcov'
dotnet test /p:CollectCoverage=true /p:Exclude=[commonItems]*
- name: Publish coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: Fronter.NET.Tests/TestResults/coverage.info
test:
strategy:
matrix:
os: [[self-hosted, windows], macos-15]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: "Test"
working-directory: Fronter.NET.Tests
run: |
dotnet test