@@ -10,32 +10,42 @@ jobs:
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
13
- name : PHP ${{ matrix.php }}
13
+ name : PHP ${{ matrix.php }} - composer ${{ matrix.composer_install }}
14
14
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
18
include :
19
- - php : 7.4
20
- output : ' -o github-action -o default'
19
+ - php : ' 8.1'
21
20
phpcq_install : ' install'
22
- - php : 8.0
23
- output : ' -o default'
21
+ phpcq_flags : ' '
22
+ composer_install : ' update --prefer-lowest'
23
+ - php : ' 8.1'
24
24
phpcq_install : ' update'
25
+ phpcq_flags : ' '
26
+ composer_install : ' update'
27
+ - php : ' 8.2'
28
+ phpcq_install : ' update'
29
+ phpcq_flags : ' '
30
+ composer_install : ' update'
31
+ - php : ' 8.3'
32
+ phpcq_install : ' update'
33
+ phpcq_flags : ' '
34
+ composer_install : ' update'
25
35
26
36
steps :
27
37
- name : Pull source
28
- uses : actions/checkout@v2
38
+ uses : actions/checkout@v4
29
39
30
40
- name : Setup PHP with PECL extension
31
41
uses : shivammathur/setup-php@v2
32
42
with :
33
43
php-version : ${{ matrix.php }}
34
44
35
45
- name : Cache composer cache directory
36
- uses : actions/cache@v1
46
+ uses : actions/cache@v4
37
47
env :
38
- cache-name : composer-cache-dir-${{ matrix.php }}
48
+ cache-name : composer-cache-dir-${{ matrix.php }}-${{ matrix.composer_install }}
39
49
with :
40
50
path : ~/.cache/composer
41
51
key : ${{ runner.os }}-build-${{ env.cache-name }}
44
54
run : composer install
45
55
46
56
- name : Cache vendor directory
47
- uses : actions/cache@v1
57
+ uses : actions/cache@v4
48
58
env :
49
59
cache-name : vendor-${{ matrix.php }}
50
60
with :
57
67
run : ./vendor/bin/phpcq ${{ matrix.phpcq_install }} -v
58
68
59
69
- name : Cache phpcq directory
60
- uses : actions/cache@v1
70
+ uses : actions/cache@v4
61
71
env :
62
72
cache-name : phpcq-${{ matrix.php }}
63
73
with :
70
80
run : ./vendor/bin/phpcq run -v ${{ matrix.output }}
71
81
72
82
- name : Upload build directory to artifact
73
- uses : actions/upload-artifact@v2
83
+ uses : actions/upload-artifact@v4
74
84
if : ${{ success() }} || ${{ failure() }}
75
85
with :
76
86
name : phpcq-builds-php-${{ matrix.php }}
0 commit comments