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