|
7 | 7 | - cron: '0 0 * * *' |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - tests: |
| 10 | + resolve: |
| 11 | + name: Resolve P${{ matrix.php }} - L${{ matrix.laravel }} |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + php: [ 8.4, 8.3, 8.2 ] |
| 17 | + laravel: [ 13.*, 12.*, 11.* ] |
| 18 | + exclude: |
| 19 | + - php: 8.2 |
| 20 | + laravel: 13.* |
| 21 | + steps: |
| 22 | + - name: Checkout code |
| 23 | + uses: actions/checkout@v4 |
11 | 24 |
|
| 25 | + - name: Setup PHP |
| 26 | + uses: shivammathur/setup-php@v2 |
| 27 | + with: |
| 28 | + php-version: ${{ matrix.php }} |
| 29 | + extensions: curl, dom, intl, json, libxml, mbstring, openssl, zip |
| 30 | + tools: composer:v2 |
| 31 | + |
| 32 | + - name: Check dependency resolution |
| 33 | + run: | |
| 34 | + composer require illuminate/support:${{ matrix.laravel }} --no-update --no-interaction |
| 35 | + composer update --prefer-stable --prefer-dist --no-interaction --no-progress --dry-run |
| 36 | +
|
| 37 | + tests: |
| 38 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
12 | 39 | runs-on: ubuntu-latest |
| 40 | + needs: resolve |
13 | 41 | strategy: |
14 | 42 | fail-fast: true |
15 | 43 | matrix: |
16 | | - os: [ ubuntu-latest ] |
17 | | - php: [ 8.4, 8.3, 8.2, 8.1 ] |
18 | | - laravel: [ 13.*, 12.*, 11.*, 10.* ] |
| 44 | + php: [ 8.4, 8.3, 8.2 ] |
| 45 | + laravel: [ 13.*, 12.*, 11.* ] |
19 | 46 | dependency-version: [ prefer-stable ] |
20 | 47 | exclude: |
21 | | - - php: 8.1 |
22 | | - laravel: 13.* |
23 | 48 | - php: 8.2 |
24 | 49 | laravel: 13.* |
25 | | - - php: 8.1 |
26 | | - laravel: 12.* |
27 | | - |
28 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
29 | 50 |
|
30 | 51 | steps: |
31 | 52 | - name: Checkout code |
|
41 | 62 |
|
42 | 63 | - name: Install dependencies |
43 | 64 | run: | |
| 65 | + composer require illuminate/support:${{ matrix.laravel }} --no-update --no-interaction |
44 | 66 | composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress |
45 | 67 |
|
46 | 68 | - name: Execute tests |
47 | 69 | run: vendor/bin/phpunit --coverage-text |
| 70 | + |
| 71 | + prefer-lowest: |
| 72 | + name: Prefer lowest (P8.2) |
| 73 | + runs-on: ubuntu-latest |
| 74 | + steps: |
| 75 | + - name: Checkout code |
| 76 | + uses: actions/checkout@v4 |
| 77 | + |
| 78 | + - name: Setup PHP |
| 79 | + uses: shivammathur/setup-php@v2 |
| 80 | + with: |
| 81 | + php-version: 8.2 |
| 82 | + extensions: curl, dom, intl, json, libxml, mbstring, openssl, zip |
| 83 | + tools: composer:v2 |
| 84 | + coverage: xdebug |
| 85 | + |
| 86 | + - name: Install lowest dependencies |
| 87 | + run: | |
| 88 | + composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction --no-progress |
| 89 | +
|
| 90 | + - name: Execute tests |
| 91 | + run: vendor/bin/phpunit --coverage-text |
0 commit comments