10
10
# Allow manually triggering the workflow.
11
11
workflow_dispatch :
12
12
13
+ # Cancels all previous workflow runs for the same branch that have not yet completed.
14
+ concurrency :
15
+ # The concurrency group contains the workflow name and the branch name.
16
+ group : ${{ github.workflow }}-${{ github.ref }}
17
+ cancel-in-progress : true
18
+
13
19
jobs :
14
20
php-tests :
15
21
runs-on : ubuntu-latest
19
25
20
26
strategy :
21
27
matrix :
22
- php : ['8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4']
28
+ php : ['8.1', '8. 0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4']
23
29
dependency-version : ['prefer-stable']
24
30
experimental : [false]
25
31
36
42
- php : ' 8.0'
37
43
dependency-version : ' prefer-lowest'
38
44
experimental : false
39
-
40
45
- php : ' 8.1'
46
+ dependency-version : ' prefer-lowest'
47
+ experimental : false
48
+
49
+ - php : ' 8.2'
41
50
dependency-version : ' prefer-stable'
42
51
experimental : true
43
52
46
55
47
56
steps :
48
57
- name : Checkout code
49
- uses : actions/checkout@v2.3.4
58
+ uses : actions/checkout@v2.4.0
50
59
51
60
- name : Setup PHP
52
61
uses : shivammathur/setup-php@v2
59
68
# Remove the coding standards package as it has a higher minimum PHP
60
69
# requirement and would prevent running the tests on older PHP versions.
61
70
- name : ' Composer: remove CS dependency'
62
- run : composer remove --dev --no-update dms/coding-standard
71
+ run : composer remove --dev --no-update dms/coding-standard --no-interaction
63
72
64
73
- name : ' Composer: update PHPUnit for testing lowest (PHP 7.2)'
65
74
if : ${{ matrix.dependency-version == 'prefer-lowest' && matrix.php == '7.2' }}
@@ -70,14 +79,14 @@ jobs:
70
79
run : composer require --no-update phpunit/phpunit:"^9.0" --no-interaction
71
80
72
81
- name : Install dependencies - normal
73
- if : ${{ matrix.php < 8.1 }}
82
+ if : ${{ matrix.php < 8.2 }}
74
83
run : |
75
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
84
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-interaction
76
85
77
86
- name : Install dependencies - ignore platform reqs
78
- if : ${{ matrix.php >= 8.1 }}
87
+ if : ${{ matrix.php >= 8.2 }}
79
88
run : |
80
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs
89
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs --no-interaction
81
90
82
91
- name : Execute Unit Tests
83
92
run : vendor/bin/phpunit
0 commit comments