File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,19 @@ jobs:
23
23
php :
24
24
- " 7.4"
25
25
- " 8.0"
26
+ - " 8.1"
26
27
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 : ' '
29
36
37
+ name : ${{ matrix.actions.name }} on PHP ${{ matrix.php }} with ${{ matrix.deps.name }}
38
+ runs-on : ubuntu-latest
30
39
31
40
steps :
32
41
- name : Checkout
@@ -53,18 +62,20 @@ jobs:
53
62
with :
54
63
path : |
55
64
${{ 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 }}
57
66
58
67
59
68
- uses : actions/cache@v2
60
69
with :
61
70
path : |
62
71
**/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 }}
64
73
65
74
66
75
- name : Install Composer
67
- run : composer install --no-progress
76
+ run : composer update --no-progress ${{ matrix.deps.arg }}
68
77
69
78
70
- - run : ${{ matrix.actions.run }}
79
+ - name : Run job
80
+ if : ${{ matrix.deps.key != 'lowest' && matrix.php != '8.1 }}
81
+ run : ${{ matrix.actions.run }}
You can’t perform that action at this time.
0 commit comments