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