|
1 | 1 | name: tests |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + - push |
| 5 | + - pull_request |
4 | 6 |
|
5 | 7 | jobs: |
6 | | - run-tests: |
7 | | - runs-on: ubuntu-latest |
8 | | - strategy: |
9 | | - fail-fast: false |
10 | | - matrix: |
11 | | - php: [8.3, 8.2, 8.1, 8.0] |
12 | | - laravel: [10.*, 9.*] |
13 | | - dependency-version: [prefer-stable] |
14 | | - include: |
15 | | - - laravel: 9.* |
16 | | - testbench: 7.* |
17 | | - - laravel: 10.* |
18 | | - testbench: 8.* |
19 | | - exclude: |
20 | | - - laravel: 10.* |
21 | | - php: 8.0 |
22 | | - |
23 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
24 | | - |
25 | | - steps: |
26 | | - - name: Checkout code |
27 | | - uses: actions/checkout@v4 |
28 | | - |
29 | | - - name: Setup PHP |
30 | | - uses: shivammathur/setup-php@v2 |
31 | | - with: |
32 | | - php-version: ${{ matrix.php }} |
33 | | - extensions: pdo, sqlite, pdo_sqlite |
34 | | - coverage: none |
35 | | - |
36 | | - - name: Install dependencies |
37 | | - run: | |
38 | | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
39 | | - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
40 | | -
|
41 | | - - name: Execute tests |
42 | | - run: vendor/bin/phpunit |
| 8 | + run-tests: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + php: [8.3, 8.2, 8.1, 8.0] |
| 15 | + laravel: ['9.*', '10.*', '11.*'] |
| 16 | + dependency-version: [prefer-stable] |
| 17 | + include: |
| 18 | + - laravel: 9.* |
| 19 | + testbench: 7.* |
| 20 | + - laravel: 10.* |
| 21 | + testbench: 8.* |
| 22 | + - laravel: 11.* |
| 23 | + testbench: 9.* |
| 24 | + exclude: |
| 25 | + - laravel: 10.* |
| 26 | + php: 8.0 |
| 27 | + - laravel: 11.* |
| 28 | + php: 8.1 |
| 29 | + - laravel: 11.* |
| 30 | + php: 8.0 |
| 31 | + |
| 32 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
| 33 | + |
| 34 | + steps: |
| 35 | + - name: Checkout code |
| 36 | + uses: actions/checkout@v4 |
| 37 | + |
| 38 | + - name: Setup PHP |
| 39 | + uses: shivammathur/setup-php@v2 |
| 40 | + with: |
| 41 | + php-version: ${{ matrix.php }} |
| 42 | + extensions: pdo, sqlite, pdo_sqlite |
| 43 | + coverage: none |
| 44 | + |
| 45 | + - name: Install dependencies |
| 46 | + run: | |
| 47 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 48 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
| 49 | +
|
| 50 | + - name: Execute tests |
| 51 | + run: vendor/bin/phpunit |
| 52 | + env: |
| 53 | + XDEBUG_MODE: coverage |
0 commit comments