@@ -10,12 +10,20 @@ jobs:
10
10
fail-fast : true
11
11
matrix :
12
12
php : [8.2, 8.3, 8.4]
13
- laravel : [11.0]
13
+ laravel : [11.0, 12.0 ]
14
14
name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
15
15
steps :
16
16
- name : Checkout code
17
17
uses : actions/checkout@v4
18
18
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : ${{ matrix.php }}
23
+ tools : composer:v2
24
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, gd, soap
25
+ coverage : none
26
+
19
27
- name : Get composer cache directory
20
28
id : composer-cache
21
29
run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
27
35
key : ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.json') }}
28
36
restore-keys : ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-
29
37
30
- - name : Setup PHP
31
- uses : shivammathur/setup-php@v2
32
- with :
33
- php-version : ${{ matrix.php }}
34
- tools : composer:v2
35
- extensions : dom, curl, libxml, mbstring, zip, pcntl, gd, soap
36
- coverage : none
37
-
38
38
- name : Install dependencies
39
39
run : composer require "illuminate/support:^${{ matrix.laravel }}" --prefer-stable --prefer-dist --no-interaction
40
40
48
48
- name : Checkout
49
49
uses : actions/checkout@v4
50
50
51
+ - name : Setup PHP
52
+ uses : shivammathur/setup-php@v2
53
+ with :
54
+ php-version : ' 8.2'
55
+ tools : composer:v2
56
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, gd, soap
57
+ coverage : none
58
+
51
59
- name : Get composer cache directory
52
60
id : composer-cache
53
61
run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
59
67
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
60
68
restore-keys : ${{ runner.os }}-composer-
61
69
62
- - name : Setup PHP
63
- uses : shivammathur/setup-php@v2
64
- with :
65
- php-version : ' 8.2'
66
- tools : composer:v2
67
- extensions : dom, curl, libxml, mbstring, zip, pcntl, gd, soap
68
- coverage : none
69
-
70
70
- name : Install dependencies
71
71
run : composer install --prefer-dist --no-interaction --optimize-autoloader
72
72
0 commit comments