forked from php-actions/phpunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
109 lines (89 loc) · 3.02 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
name: PHPUnit (osma's fork of php-actions/phpunit, with host networking)
description: Run your PHPUnit tests in your Github Actions.
inputs:
version:
description: What version of PHPUnit to use
default: latest
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
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: JUnit output file location
required: false
testdox_text:
description: JUnit output file location
required: false
testdox_xml:
description: JUnit output file location
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
default: Test.php,.phpt
whitelist:
description: Path to directory to whitelist for code coverage analysis
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_CONFIGURATION: ${{ inputs.configuration }}
ACTION_LOG_JUNIT: ${{ inputs.log_junit }}
ACTION_TESTDOX_HTML: ${{ inputs.testdox_html }}
ACTION_TESTDOX_TEXT: ${{ inputs.testdox_text }}
ACTION_TESTDOX_XML: ${{ inputs.testdox_xml }}
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_ARGS: ${{ inputs.args }}
id: phpunit_run
run: bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/330b13bbb1eadd05bbb627477c1549cd7e62e406/php-build.bash) phpunit \
&& ${{ github.action_path }}/phpunit-action.bash || { cat ${{ github.workspace }}/output.log ; exit 1; }
shell: bash
branding:
icon: 'check-square'
color: 'purple'