Skip to content

Commit 45928dc

Browse files
committed
Expand github actions
1 parent 419835e commit 45928dc

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/diagnostics.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,42 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13-
name: PHP ${{ matrix.php }}
13+
name: PHP ${{ matrix.php }} - composer ${{ matrix.composer_install }}
1414

1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- php: 7.4
20-
output: '-o github-action -o default'
19+
- php: '8.1'
2120
phpcq_install: 'install'
22-
- php: 8.0
23-
output: '-o default'
21+
phpcq_flags: ''
22+
composer_install: 'update --prefer-lowest'
23+
- php: '8.1'
2424
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'
2535

2636
steps:
2737
- name: Pull source
28-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
2939

3040
- name: Setup PHP with PECL extension
3141
uses: shivammathur/setup-php@v2
3242
with:
3343
php-version: ${{ matrix.php }}
3444

3545
- name: Cache composer cache directory
36-
uses: actions/cache@v1
46+
uses: actions/cache@v4
3747
env:
38-
cache-name: composer-cache-dir-${{ matrix.php }}
48+
cache-name: composer-cache-dir-${{ matrix.php }}-${{ matrix.composer_install }}
3949
with:
4050
path: ~/.cache/composer
4151
key: ${{ runner.os }}-build-${{ env.cache-name }}
@@ -44,7 +54,7 @@ jobs:
4454
run: composer install
4555

4656
- name: Cache vendor directory
47-
uses: actions/cache@v1
57+
uses: actions/cache@v4
4858
env:
4959
cache-name: vendor-${{ matrix.php }}
5060
with:
@@ -57,7 +67,7 @@ jobs:
5767
run: ./vendor/bin/phpcq ${{ matrix.phpcq_install }} -v
5868

5969
- name: Cache phpcq directory
60-
uses: actions/cache@v1
70+
uses: actions/cache@v4
6171
env:
6272
cache-name: phpcq-${{ matrix.php }}
6373
with:
@@ -70,7 +80,7 @@ jobs:
7080
run: ./vendor/bin/phpcq run -v ${{ matrix.output }}
7181

7282
- name: Upload build directory to artifact
73-
uses: actions/upload-artifact@v2
83+
uses: actions/upload-artifact@v4
7484
if: ${{ success() }} || ${{ failure() }}
7585
with:
7686
name: phpcq-builds-php-${{ matrix.php }}

0 commit comments

Comments
 (0)