File tree 2 files changed +68
-2
lines changed 2 files changed +68
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : validate-on-push
2
+ on : [push]
3
+ jobs :
4
+ linter :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v3
8
+ - uses : php-actions/composer@v6
9
+ with :
10
+ php_version : ' 7.4'
11
+ command : config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
12
+ - uses : php-actions/composer@v6
13
+ with :
14
+ php_version : ' 7.4'
15
+ # See https://github.com/WordPress/WordPress-Coding-Standards/issues/2068
16
+ command : require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer phpcompatibility/phpcompatibility-wp
17
+ - run : ./vendor/bin/phpcs
18
+
19
+ unit-tests-php73 :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+ - uses : php-actions/composer@v6
24
+ with :
25
+ php_version : ' 7.3'
26
+ - uses : php-actions/composer@v6
27
+ with :
28
+ php_version : ' 7.3'
29
+ command : test
30
+
31
+ unit-tests-php74 :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - uses : actions/checkout@v3
35
+ - uses : php-actions/composer@v6
36
+ with :
37
+ php_version : ' 7.4'
38
+ - uses : php-actions/composer@v6
39
+ with :
40
+ php_version : ' 7.4'
41
+ command : test
42
+
43
+ unit-tests-php80 :
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v3
47
+ - uses : php-actions/composer@v6
48
+ with :
49
+ php_version : ' 8.0'
50
+ - uses : php-actions/composer@v6
51
+ with :
52
+ php_version : ' 8.0'
53
+ command : test
54
+
55
+ unit-tests-php81 :
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : actions/checkout@v3
59
+ - uses : php-actions/composer@v6
60
+ with :
61
+ php_version : ' 8.1'
62
+ - uses : php-actions/composer@v6
63
+ with :
64
+ php_version : ' 8.1'
65
+ command : test
Original file line number Diff line number Diff line change 2
2
<!-- https://phpunit.readthedocs.io/en/9.5/configuration.html -->
3
3
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
4
xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
5
- colors =" true" cacheResult =" false" convertErrorsToExceptions =" true"
6
- convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" >
5
+ colors =" true" verbose =" true" cacheResult =" false"
6
+ convertErrorsToExceptions =" true" convertNoticesToExceptions =" true"
7
+ convertWarningsToExceptions =" true" >
7
8
8
9
<testsuites >
9
10
<testsuite name =" tests" >
You can’t perform that action at this time.
0 commit comments