|
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.1 ] |
13 |
| - laravel: [ 9.*, 10.* ] |
14 |
| - dependency-version: [ prefer-lowest, prefer-stable ] |
15 |
| - include: |
16 |
| - - laravel: 9.* |
17 |
| - testbench: 7.* |
18 |
| - - laravel: 10.* |
19 |
| - testbench: 8.* |
20 |
| - |
21 |
| - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
22 |
| - |
23 |
| - steps: |
24 |
| - - name: Checkout code |
25 |
| - uses: actions/checkout@v2 |
26 |
| - |
27 |
| - - name: Cache dependencies |
28 |
| - uses: actions/cache@v2 |
29 |
| - with: |
30 |
| - path: ~/.composer/cache/files |
31 |
| - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
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: Install dependencies |
41 |
| - run: | |
42 |
| - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
43 |
| - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
44 |
| -
|
45 |
| - - name: Execute tests |
46 |
| - run: vendor/bin/phpunit |
| 8 | + test: |
| 9 | + runs-on: ${{ matrix.os }} |
| 10 | + strategy: |
| 11 | + fail-fast: true |
| 12 | + matrix: |
| 13 | + os: [ubuntu-latest] |
| 14 | + php: [ 8.3, 8.2 ] |
| 15 | + laravel: [ '10.*', '11.*' ] |
| 16 | + stability: [prefer-lowest, prefer-stable] |
| 17 | + include: |
| 18 | + - laravel: 11.* |
| 19 | + testbench: 9.* |
| 20 | + - laravel: 10.* |
| 21 | + testbench: 8.* |
| 22 | + |
| 23 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
| 24 | + |
| 25 | + steps: |
| 26 | + - name: Checkout code |
| 27 | + uses: actions/checkout@v4 |
| 28 | + |
| 29 | + - name: Setup PHP |
| 30 | + uses: shivammathur/setup-php@v2 |
| 31 | + with: |
| 32 | + php-version: ${{ matrix.php }} |
| 33 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo |
| 34 | + coverage: none |
| 35 | + |
| 36 | + - name: Setup problem matchers |
| 37 | + run: | |
| 38 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 39 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 40 | +
|
| 41 | + - name: Install dependencies |
| 42 | + run: | |
| 43 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 44 | + composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
| 45 | +
|
| 46 | + - name: Execute tests |
| 47 | + run: vendor/bin/phpunit |
0 commit comments