-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1011 Bytes
/
unit-test-report.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
name: "Dot Net Test Reporter"
on:
pull_request_target:
types: [ opened, synchronize ]
permissions:
pull-requests: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
8.0.x
- name: Restore dependencies
run: dotnet restore -p:TargetFramework=net8.0 AutomatedTesting
- name: Build-8.0
run: dotnet build --framework net8.0 --no-restore AutomatedTesting
- name: Test-8.0
run: dotnet test --framework net8.0 --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" --collect:"Code Coverage" AutomatedTesting
- name: report results
uses: bibipkins/dotnet-test-reporter@v1.4.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: 'Unit Test Results'
results-path: ./**/*.trx
coverage-path: ./**/*.coverage
coverage-threshold: 90