forked from JBaczuk/pr-test-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
56 lines (53 loc) · 1.76 KB
/
Copy pathaction.yml
File metadata and controls
56 lines (53 loc) · 1.76 KB
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
name: 'PR Test Coverage'
description: 'A Github Action to report the test coverage of changed files in a pull request'
author: 'Jordan Baczuk'
branding:
icon: 'shield'
color: 'green'
inputs:
coverage-xml-dir:
description: 'Path to the PHPUnit XML coverage directory (e.g., coverage-xml)'
required: true
github-token:
description: 'GitHub token for accessing API and posting comments'
required: true
default: ${{ github.token }}
working-directory:
description: 'Working directory to run the action from'
required: false
default: ''
all-files-minimum-coverage:
description: 'Minimum coverage percentage for all files (0-100) (optional)'
required: false
default: '0'
changed-files-minimum-coverage:
description: 'Minimum coverage percentage for changed files (0-100) (optional)'
required: false
default: '0'
artifact-name:
description: 'Name for the coverage artifact upload (leave empty to skip)'
required: false
default: ''
update-comment:
description: 'Whether to update existing comment or create new one'
required: false
default: 'true'
report-title:
required: false
description: 'PR coverage report comment title (optional)'
outputs:
all-files-coverage:
description: 'Overall line coverage percentage for all files'
changed-files-coverage:
description: 'Line coverage percentage for changed files'
all-files-lines-hit:
description: 'Number of lines covered in all files'
all-files-lines-total:
description: 'Total number of lines in all files'
changed-files-lines-hit:
description: 'Number of lines covered in changed files'
changed-files-lines-total:
description: 'Total number of lines in changed files'
runs:
using: 'node24'
main: 'dist/index.js'