forked from bibipkins/dotnet-test-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
59 lines (59 loc) · 1.72 KB
/
action.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
56
57
58
59
name: 'Dotnet Test Reporter'
description: 'A GitHub action to parse test results and post the summary as a PR comment'
author: 'https://github.com/bibipkins'
branding:
icon: 'check-square'
color: 'white'
inputs:
github-token:
description: 'GitHub repository token'
required: true
results-path:
description: 'Path to the directory containing trx files'
required: true
coverage-path:
description: 'Path to the file containing test coverage'
required: false
coverage-type:
description: 'Coverage file type'
required: false
default: 'opencover'
coverage-threshold:
description: 'Minimum allowed coverage (from 0.00 to 100.00)'
required: false
comment-title:
description: 'Pull Request comment title'
required: false
default: 'Test Results'
post-new-comment:
description: 'Boolean flag. Set to true to post a new comment after each run'
required: false
default: false
allow-failed-tests:
description: 'Boolean flag. Set to true to prevent failed tests from failing the job'
required: false
default: false
outputs:
tests-total:
description: 'Total number of tests'
tests-passed:
description: 'Number of tests passed'
tests-failed:
description: 'Number of tests failed'
tests-skipped:
description: 'Number of tests skipped'
coverage-line:
description: 'Line code coverage'
coverage-lines-total:
description: 'Total lines of code'
coverage-lines-covered:
description: 'Lines of code covered'
coverage-branch:
description: 'Branch code coverage'
coverage-branches-total:
description: 'Total branches'
coverage-branches-covered:
description: 'Branches covered'
runs:
using: 'node16'
main: 'dist/index.js'