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