-
-
Notifications
You must be signed in to change notification settings - Fork 20
55 lines (51 loc) · 1.37 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
53
54
55
name: "Test"
on:
pull_request:
merge_group:
concurrency:
group: ci-tests-${{ github.ref }}-1
cancel-in-progress: true
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: ImperatorToCK3.UnitTests
shell: pwsh
run: |
$env:CoverletOutput='./TestResults/coverage.info'
$env:CoverletOutputFormat='lcov'
dotnet test /p:CollectCoverage=true
- name: "Publish coverage report to coveralls.io"
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ImperatorToCK3.UnitTests/TestResults/coverage.info
format: lcov
debug: true
test:
strategy:
matrix:
os: [[self-hosted, windows], macos-14]
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: ImperatorToCK3.UnitTests
run: |
dotnet test