Skip to content

Commit 4efe7cf

Browse files
committed
Github actions - add php 8.1, add lowest deps test
1 parent 1266a4a commit 4efe7cf

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,19 @@ jobs:
2323
php:
2424
- "7.4"
2525
- "8.0"
26+
- "8.1"
2627

27-
name: ${{ matrix.actions.name }} on PHP ${{ matrix.php }}
28-
runs-on: ubuntu-latest
28+
deps:
29+
- name: Lowest deps
30+
key: lowest
31+
arg: --prefer-lowest
32+
33+
- name: Current deps
34+
key: current
35+
arg: ''
2936

37+
name: ${{ matrix.actions.name }} on PHP ${{ matrix.php }} with ${{ matrix.deps.name }}
38+
runs-on: ubuntu-latest
3039

3140
steps:
3241
- name: Checkout
@@ -53,18 +62,20 @@ jobs:
5362
with:
5463
path: |
5564
${{ steps.composer-cache.outputs.dir }}
56-
key: ${{ runner.os }}-composer-data-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}
65+
key: ${{ runner.os }}-composer-data-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}-${{ matrix.deps.name }}
5766

5867

5968
- uses: actions/cache@v2
6069
with:
6170
path: |
6271
**/composer.lock
63-
key: ${{ runner.os }}-composer-lock-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}
72+
key: ${{ runner.os }}-composer-lock-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}-${{ matrix.deps.name }}
6473

6574

6675
- name: Install Composer
67-
run: composer install --no-progress
76+
run: composer update --no-progress ${{ matrix.deps.arg }}
6877

6978

70-
- run: ${{ matrix.actions.run }}
79+
- name: Run job
80+
if: ${{ matrix.deps.key != 'lowest' && matrix.php != '8.1 }}
81+
run: ${{ matrix.actions.run }}

0 commit comments

Comments
 (0)