-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
action.yml
151 lines (122 loc) · 4.27 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: PHPUnit (php-actions)
description: Run your PHPUnit tests in your Github Actions.
inputs:
version:
description: What version of PHPUnit to use
default: composer
required: false
php_version:
description: What version of PHP to use
default: latest
required: false
php_extensions:
description: Space separated list of extensions to configure with the PHP build
required: false
vendored_phpunit_path:
description: Path to a vendored phpunit binary
required: false
configuration:
description: Configuration file location
required: false
log_junit:
description: JUnit output file location
required: false
log_teamcity:
description: JUnit output file location
required: false
testdox_html:
description: Write documentation in HTML format to file
required: false
testdox_text:
description: Write documentation in Text format to file
required: false
memory_limit:
description: Memory limit
required: false
bootstrap:
description: Path to bootstrap file
required: false
filter:
description: Filter which tests to run
required: false
testsuite:
description: Specify a testsuite to run
required: false
group:
description: Only runs tests from the specified group(s)
required: false
exclude_group:
description: Exclude tests from the specified group(s)
required: false
test_suffix:
description: Only search for test in files with specified suffix(es)
required: false
whitelist:
description: Path to directory to whitelist for code coverage analysis
required: false
coverage_filter:
description: Include directory in code coverage reporting
required: false
coverage_clover:
description: Generate code coverage report in Clover XML format
required: false
coverage_cobertura:
description: Generate code coverage report in Cobertura XML format
required: false
coverage_crap4j:
description: Generate code coverage report in Crap4J XML format
required: false
coverage_html:
description: Generate code coverage report in HTML format
required: false
coverage_php:
description: Export PHP_CodeCoverage object to file
required: false
coverage_text:
description: Generate code coverage report in text format (true to output to console, path to output to file)
required: false
coverage_xml:
description: Generate code coverage report in PHPUnit XML format
required: false
args:
description: Extra arguments to pass to the phpunit binary
required: false
runs:
using: "composite"
steps:
- env:
ACTION_TOKEN: ${{ github.token }}
ACTION_VERSION: ${{ inputs.version }}
ACTION_PHP_VERSION: ${{ inputs.php_version }}
ACTION_PHP_EXTENSIONS: ${{ inputs.php_extensions }}
ACTION_PHPUNIT_PATH: ${{ inputs.vendored_phpunit_path }}
ACTION_CONFIGURATION: ${{ inputs.configuration }}
ACTION_LOG_JUNIT: ${{ inputs.log_junit }}
ACTION_TESTDOX_HTML: ${{ inputs.testdox_html }}
ACTION_TESTDOX_TEXT: ${{ inputs.testdox_text }}
ACTION_BOOTSTRAP: ${{ inputs.bootstrap }}
ACTION_FILTER: ${{ inputs.filter }}
ACTION_TESTSUITE: ${{ inputs.testsuite }}
ACTION_GROUP: ${{ inputs.group }}
ACTION_EXCLUDE_GROUP: ${{ inputs.exclude_group }}
ACTION_TEST_SUFFIX: ${{ inputs.test_suffix }}
ACTION_WHITELIST: ${{ inputs.whitelist }}
ACTION_MEMORY_LIMIT: ${{ inputs.memory_limit }}
ACTION_COVERAGE_FILTER: ${{ inputs.coverage_filter }}
ACTION_COVERAGE_CLOVER: ${{ inputs.coverage_clover }}
ACTION_COVERAGE_COBERTURA: ${{ inputs.coverage_cobertura }}
ACTION_COVERAGE_CRAP4J: ${{ inputs.coverage_crap4j }}
ACTION_COVERAGE_HTML: ${{ inputs.coverage_html }}
ACTION_COVERAGE_PHP: ${{ inputs.coverage_php }}
ACTION_COVERAGE_TEXT: ${{ inputs.coverage_text }}
ACTION_COVERAGE_XML: ${{ inputs.coverage_xml }}
ACTION_ARGS: ${{ inputs.args }}
id: phpunit_run
run: |
set -e
bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/v2/php-build.bash) phpunit
${{ github.action_path }}/phpunit-action.bash
shell: bash
branding:
icon: 'check-square'
color: 'purple'