|
1 | 1 | name: phpunit
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: [main] |
6 |
| - pull_request: |
7 |
| - branches: [main] |
| 4 | + push: |
| 5 | + branches: [ main ] |
| 6 | + pull_request: |
| 7 | + branches: [ main ] |
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - test: |
11 |
| - runs-on: ${{ matrix.os }} |
12 |
| - strategy: |
13 |
| - fail-fast: true |
14 |
| - matrix: |
15 |
| - os: [ubuntu-latest] |
16 |
| - php: [8.0] |
17 |
| - laravel: [8.*] |
18 |
| - stability: [prefer-lowest, prefer-stable] |
19 |
| - include: |
20 |
| - - laravel: 8.* |
21 |
| - testbench: ^6.6 |
| 10 | + test: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + fail-fast: true |
| 14 | + matrix: |
| 15 | + os: [ ubuntu-latest ] |
| 16 | + php: [ 8.2, 8.1, 8.0 ] |
| 17 | + laravel: [ 9.*, 10.* ] |
| 18 | + stability: [ prefer-lowest, prefer-stable ] |
| 19 | + include: |
| 20 | + - laravel: 9.* |
| 21 | + testbench: ^7 |
| 22 | + - laravel: 10.* |
| 23 | + testbench: ^8 |
22 | 24 |
|
23 |
| - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
| 25 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
24 | 26 |
|
25 |
| - steps: |
26 |
| - - name: Checkout code |
27 |
| - uses: actions/checkout@v2 |
| 27 | + steps: |
| 28 | + - name: Checkout code |
| 29 | + uses: actions/checkout@v4 |
28 | 30 |
|
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 |
| 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, fileinfo |
| 36 | + coverage: none |
35 | 37 |
|
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 |
| - - name: Install dependencies |
41 |
| - run: | |
42 |
| - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
43 |
| - composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
44 |
| - - name: Execute tests |
45 |
| - run: vendor/bin/phpunit |
| 38 | + - name: Setup problem matchers |
| 39 | + run: | |
| 40 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 41 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 42 | + - name: Install dependencies |
| 43 | + run: | |
| 44 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 45 | + composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
| 46 | + - name: Execute tests |
| 47 | + run: vendor/bin/phpunit |
0 commit comments