-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.71 KB
/
build_and_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
name: Build & Test
on:
push:
branches: [ tribe ]
pull_request:
branches: [ tribe ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name : coverlet
uses: b3b00/[email protected]
with:
testProject: 'RevolveUavcanTest/RevolveUavcanTest.csproj'
output: 'lcov.info'
outputFormat: 'lcov'
excludes: '[program]*,[test]test.*'
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test_report
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/TestResults/test-results.trx
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: coverage_report
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/lcov.info
- uses: coverallsapp/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN }}
path-to-lcov: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/lcov.info
- name: Test Reporter
uses: dorny/[email protected]
if: ${{ always() }}
with:
name: Test Report # Name of the check run which will be created
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/TestResults/test-results.trx # Path to test results
reporter: dotnet-trx # Format of test results