@@ -11,14 +11,26 @@ jobs:
11
11
12
12
strategy :
13
13
matrix :
14
- operating-system : [ubuntu-latest]
15
- php-versions : ["8.2","8.1","8.0", "7.4", "7.3"]
14
+ php-versions : ["8.4", "8.3","8.2","8.1","8.0", "7.4", "7.3"]
16
15
dependency-stability : ["prefer-stable"]
17
16
18
- name : P${{ matrix.php-versions }} - L ${{ matrix.laravel }} - ${{ matrix. dependency-stability }} - ${{ matrix.operating-system}}
17
+ name : P${{ matrix.php-versions }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system }}
19
18
20
19
steps :
21
20
- uses : actions/checkout@v3
21
+
22
+ - name : Get Composer Cache Directory
23
+ id : composer-cache
24
+ run : |
25
+ echo "::set-output name=dir::$(composer config cache-files-dir)"
26
+
27
+ - name : Cache Composer Dependencies
28
+ uses : actions/cache@v2
29
+ with :
30
+ path : ${{ steps.composer-cache.outputs.dir }}
31
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
32
+ restore-keys : ${{ runner.os }}-composer-
33
+
22
34
- name : Install PHP versions
23
35
uses : shivammathur/setup-php@v2
24
36
with :
@@ -27,12 +39,13 @@ jobs:
27
39
if : steps.vendor-cache.outputs.cache-hit != 'true'
28
40
run : composer update -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
29
41
30
- - name : Update Dependencies with latest stable
31
- if : matrix.dependency-stability == 'prefer-stable'
32
- run : composer update --prefer-stable
33
- - name : Update Dependencies with lowest stable
34
- if : matrix.dependency-stability == 'prefer-lowest'
35
- run : composer update --prefer-stable --prefer-lowest
42
+ - name : Update Dependencies
43
+ run : |
44
+ if [ "${{ matrix.dependency-stability }}" = "prefer-stable" ]; then
45
+ composer update --prefer-stable
46
+ elif [ "${{ matrix.dependency-stability }}" = "prefer-lowest" ]; then
47
+ composer update --prefer-stable --prefer-lowest
48
+ fi
36
49
37
50
- name : Show dir
38
51
run : pwd
0 commit comments