-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (36 loc) · 1.18 KB
/
jitter-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
34
35
36
37
38
39
40
41
42
43
name: JitterTests
on:
push:
branches: [ main ]
pull_request:
types: [opened, reopened]
permissions:
id-token: write
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/JitterTests
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test -c Release --no-restore --test-adapter-path:. --logger "trx;LogFileName=test-results.trx"
#run: dotnet test -c Release --no-restore --test-adapter-path:. --logger:"junit;LogFilePath=test-result.xml;MethodFormat=Class;FailureBodyFormat=Verbose"
- name: TestReport
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: JitterTests # Name of the check run which will be created
path: ./src/JitterTests/TestResults/test-results.trx # Path to test results
reporter: dotnet-trx # Format of test results