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