|
1 | | -name: Tests |
| 1 | +name: "Tests" |
2 | 2 |
|
3 | | -on: [ push, pull_request ] |
| 3 | +on: [push, pull_request] |
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | test: |
7 | | - runs-on: ${{ matrix.os }} |
| 7 | + |
| 8 | + runs-on: ubuntu-latest |
8 | 9 | strategy: |
9 | | - fail-fast: true |
| 10 | + fail-fast: false |
10 | 11 | matrix: |
11 | | - os: [ ubuntu-latest ] |
12 | | - php: [ 8.2, 8.3 ] |
13 | | - laravel: [ 10.* ] |
14 | | - dependency-version: [ prefer-lowest, prefer-stable ] |
| 12 | + php: [8.4, 8.3, 8.2] |
| 13 | + laravel: ["^12.0", "^11.0", "^10.0"] |
| 14 | + dependency-version: [prefer-lowest, prefer-stable] |
15 | 15 | include: |
16 | | - - laravel: 10.* |
| 16 | + - laravel: "^12.0" |
| 17 | + testbench: 10.* |
| 18 | + - laravel: "^11.0" |
| 19 | + testbench: 9.* |
| 20 | + - laravel: "^10.0" |
17 | 21 | testbench: 8.* |
| 22 | + exclude: |
| 23 | + - laravel: "^8.12" |
| 24 | + php: 8.3 |
| 25 | + - laravel: "^8.12" |
| 26 | + php: 8.4 |
18 | 27 |
|
19 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
| 28 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
20 | 29 |
|
21 | 30 | steps: |
22 | 31 | - name: Checkout code |
23 | | - uses: actions/checkout@v2 |
24 | | - |
25 | | - - name: Cache dependencies |
26 | | - uses: actions/cache@v2 |
27 | | - with: |
28 | | - path: ~/.composer/cache/files |
29 | | - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
| 32 | + uses: actions/checkout@v4 |
30 | 33 |
|
31 | 34 | - name: Setup PHP |
32 | 35 | uses: shivammathur/setup-php@v2 |
33 | 36 | with: |
34 | 37 | php-version: ${{ matrix.php }} |
35 | | - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
| 38 | + extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv |
36 | 39 | coverage: none |
37 | 40 |
|
38 | 41 | - name: Install dependencies |
39 | 42 | run: | |
40 | | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
41 | | - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
| 43 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" "nesbot/carbon:>=2.72.6" --no-interaction --no-update |
| 44 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
42 | 45 |
|
43 | 46 | - name: Execute tests |
44 | | - run: vendor/bin/pest -v |
| 47 | + run: vendor/bin/phpunit |
0 commit comments