|
1 | 1 | name: run-tests
|
2 | 2 |
|
3 |
| -on: [push, pull_request] |
| 3 | +on: |
| 4 | + - push |
| 5 | + - pull_request |
4 | 6 |
|
5 | 7 | jobs:
|
6 |
| - test: |
7 |
| - runs-on: ${{ matrix.os }} |
8 |
| - strategy: |
9 |
| - fail-fast: true |
10 |
| - matrix: |
11 |
| - os: [ubuntu-latest] |
12 |
| - php: [8.3, 8.2, 8.1, 8.0] |
13 |
| - laravel: [11.*, 10.*, 9.*, 8.*] |
14 |
| - stability: [prefer-stable] |
15 |
| - include: |
16 |
| - - laravel: 11.* |
17 |
| - testbench: 9.* |
18 |
| - - laravel: 10.* |
19 |
| - testbench: 8.* |
20 |
| - - laravel: 9.* |
21 |
| - testbench: 7.* |
22 |
| - - laravel: 8.* |
23 |
| - testbench: 6.23 |
24 |
| - exclude: |
25 |
| - - laravel: 11.* |
26 |
| - php: 8.1 |
27 |
| - - laravel: 11.* |
28 |
| - php: 8.0 |
29 |
| - - laravel: 10.* |
30 |
| - php: 8.0 |
31 |
| - |
32 |
| - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
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: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
43 |
| - coverage: none |
44 |
| - |
45 |
| - - name: Setup problem matchers |
46 |
| - run: | |
47 |
| - echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
48 |
| - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
49 |
| -
|
50 |
| - - name: Install dependencies |
51 |
| - run: | |
52 |
| - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
53 |
| - composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
54 |
| -
|
55 |
| - - name: Execute tests |
56 |
| - run: vendor/bin/pest |
| 8 | + test: |
| 9 | + runs-on: ${{ matrix.os }} |
| 10 | + |
| 11 | + strategy: |
| 12 | + fail-fast: true |
| 13 | + matrix: |
| 14 | + os: [ubuntu-latest] |
| 15 | + php: [8.3, 8.2, 8.1, 8.0] |
| 16 | + laravel: ['8.*', '9.*', '10.*', '11.*', '12.*'] |
| 17 | + stability: [prefer-stable] |
| 18 | + include: |
| 19 | + - laravel: 11.* |
| 20 | + testbench: 9.* |
| 21 | + - laravel: 10.* |
| 22 | + testbench: 8.* |
| 23 | + - laravel: 9.* |
| 24 | + testbench: 7.* |
| 25 | + - laravel: 8.* |
| 26 | + testbench: 6.23 |
| 27 | + - laravel: 12.* |
| 28 | + testbench: 10.* |
| 29 | + exclude: |
| 30 | + - laravel: 11.* |
| 31 | + php: 8.1 |
| 32 | + - laravel: 11.* |
| 33 | + php: 8.0 |
| 34 | + - laravel: 10.* |
| 35 | + php: 8.0 |
| 36 | + - laravel: 12.* |
| 37 | + php: 8.1 |
| 38 | + - laravel: 12.* |
| 39 | + php: 8.0 |
| 40 | + |
| 41 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
| 42 | + |
| 43 | + steps: |
| 44 | + - name: Checkout code |
| 45 | + uses: actions/checkout@v4 |
| 46 | + |
| 47 | + - name: Setup PHP |
| 48 | + uses: shivammathur/setup-php@v2 |
| 49 | + with: |
| 50 | + php-version: ${{ matrix.php }} |
| 51 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
| 52 | + coverage: none |
| 53 | + |
| 54 | + - name: Setup problem matchers |
| 55 | + run: | |
| 56 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 57 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 58 | +
|
| 59 | + - name: Install dependencies |
| 60 | + run: | |
| 61 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 62 | + composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
| 63 | +
|
| 64 | + - name: Execute tests |
| 65 | + run: vendor/bin/pest |
0 commit comments