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
33
39
- php : ' 8.0'
34
40
dependency-version : ' prefer-lowest'
35
41
experimental : false
36
-
37
42
- php : ' 8.1'
43
+ dependency-version : ' prefer-lowest'
44
+ experimental : false
45
+
46
+ - php : ' 8.2'
38
47
dependency-version : ' prefer-stable'
39
48
experimental : true
40
49
@@ -56,21 +65,21 @@ jobs:
56
65
# Remove the coding standards package as it has a higher minimum PHP
57
66
# requirement and would prevent running the tests on older PHP versions.
58
67
- name : ' Composer: remove CS dependency'
59
- run : composer remove --dev --no-update dms/coding-standard
68
+ run : composer remove --dev --no-update dms/coding-standard --no-interaction
60
69
61
70
- name : ' Composer: update PHPUnit for testing lowest'
62
71
if : ${{ matrix.dependency-version == 'prefer-lowest' }}
63
- run : composer require --no-update phpunit/phpunit:"^9.0"
72
+ run : composer require --no-update phpunit/phpunit:"^9.0" --no-interaction
64
73
65
74
- name : Install dependencies - normal
66
- if : ${{ matrix.php < 8.1 }}
75
+ if : ${{ matrix.php < 8.2 }}
67
76
run : |
68
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
77
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-interaction
69
78
70
79
- name : Install dependencies - ignore platform reqs
71
- if : ${{ matrix.php >= 8.1 }}
80
+ if : ${{ matrix.php >= 8.2 }}
72
81
run : |
73
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs
82
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs --no-interaction
74
83
75
84
- name : Execute Unit Tests
76
85
run : vendor/bin/phpunit
0 commit comments