File tree 2 files changed +24
-4
lines changed
2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches :
9
9
- " *"
10
+ # Allow manually triggering the workflow.
11
+ workflow_dispatch :
10
12
11
13
jobs :
12
14
fix-style :
@@ -25,11 +27,14 @@ jobs:
25
27
with :
26
28
php-version : 7.4
27
29
coverage : none
28
- tools : composer
30
+ tools : composer, cs2pr
29
31
30
32
- name : Install dependencies
31
33
run : |
32
34
composer update --prefer-dist --no-suggest --no-progress
33
35
34
36
- name : Check Code Style
35
- run : vendor/bin/phpcs
37
+ run : vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml
38
+
39
+ - name : Show PHPCS results in PR
40
+ run : cs2pr ./phpcs-report.xml
Original file line number Diff line number Diff line change 9
9
- " *"
10
10
schedule :
11
11
- cron : ' 0 0 * * *'
12
+ # Allow manually triggering the workflow.
13
+ workflow_dispatch :
12
14
13
15
jobs :
14
16
php-tests :
@@ -19,10 +21,17 @@ jobs:
19
21
20
22
strategy :
21
23
matrix :
22
- php : [8.x, 7.4, 7.3]
24
+ php : ['8.0', ' 7.4', ' 7.3' ]
23
25
dependency-version : [prefer-lowest, prefer-stable]
26
+ experimental : [false]
27
+
28
+ include :
29
+ - php : ' 8.1'
30
+ dependency-version : ' prefer-stable'
31
+ experimental : true
24
32
25
33
name : P${{ matrix.php }} - ${{ matrix.dependency-version }}
34
+ continue-on-error : ${{ matrix.experimental }}
26
35
27
36
steps :
28
37
- name : Checkout code
35
44
coverage : none
36
45
tools : composer
37
46
38
- - name : Install dependencies
47
+ - name : Install dependencies - normal
48
+ if : ${{ matrix.php < 8.1 }}
39
49
run : |
40
50
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
41
51
52
+ - name : Install dependencies - ignore platform reqs
53
+ if : ${{ matrix.php >= 8.1 }}
54
+ run : |
55
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs
56
+
42
57
- name : Execute Unit Tests
43
58
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments