21
21
strategy :
22
22
fail-fast : false
23
23
matrix :
24
- dependencies : ["lowest", "highest"]
25
- php : ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
24
+ dependencies :
25
+ - " lowest"
26
+ - " highest"
27
+ experimental :
28
+ - false
29
+ include :
30
+ - php : " 7.4"
31
+ composer-options : " "
32
+ experimental : true
33
+ dependencies : " highest"
34
+ - php : " 8.0"
35
+ composer-options : " "
36
+ experimental : true
37
+ dependencies : " highest"
38
+ - php : " 8.1"
39
+ composer-options : " "
40
+ experimental : true
41
+ dependencies : " highest"
42
+ - php : " 8.2"
43
+ composer-options : " "
44
+ experimental : true
45
+ dependencies : " highest"
46
+ - php : " 8.3"
47
+ composer-options : " --ignore-platform-reqs"
48
+ experimental : true
49
+ dependencies : " highest"
50
+ - php : " 8.4"
51
+ composer-options : " --ignore-platform-reqs"
52
+ experimental : true
53
+ dependencies : " highest"
26
54
steps :
27
55
- name : Set up PHP
28
56
uses :
shivammathur/[email protected]
@@ -34,20 +62,15 @@ jobs:
34
62
- name : Checkout code
35
63
uses : actions/checkout@v2
36
64
37
- - name : Install lowest dependencies
65
+ - name : " Install lowest dependencies"
38
66
if : ${{ matrix.dependencies == 'lowest' }}
39
- run : composer update --prefer-lowest --no-interaction --no-progress --no-suggest
67
+ run : composer update --prefer-lowest --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
40
68
41
- - name : Install highest dependencies
69
+ - name : " Install highest dependencies"
42
70
if : ${{ matrix.dependencies == 'highest' }}
43
- run : |
44
- if [[ "${{ matrix.php }}" =~ ^8\.[1-9]|^9 ]]; then
45
- composer update --no-interaction --no-progress --no-suggest --ignore-platform-reqs
46
- else
47
- composer update --no-interaction --no-progress --no-suggest
48
- fi
71
+ run : composer update --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
49
72
50
- - name : Run unit tests
73
+ - name : " Run unit tests"
51
74
run : ./vendor/bin/phpunit -c phpunit.xml
52
75
53
76
cs :
73
96
runs-on : ubuntu-latest
74
97
strategy :
75
98
matrix :
76
- php : ['7.4']
99
+ php :
100
+ - ' 7.4'
77
101
steps :
78
102
- name : Set up PHP
79
103
uses :
shivammathur/[email protected]
0 commit comments