|
1 | 1 | name: run-tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [master] |
6 | | - pull_request: |
7 | | - branches: [master] |
| 4 | + push: |
| 5 | + pull_request: |
8 | 6 |
|
9 | 7 | jobs: |
10 | | - test: |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - strategy: |
13 | | - fail-fast: true |
14 | | - matrix: |
15 | | - os: [ubuntu-latest] |
16 | | - php: [8.2] |
17 | | - laravel: [10.*] |
18 | | - stability: [prefer-lowest, prefer-stable] |
19 | | - include: |
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: List Installed Dependencies |
47 | | - run: composer show -D |
48 | | - |
49 | | - - name: Execute tests |
50 | | - run: composer test |
| 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