|
1 | 1 | name: Tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [master, develop] |
6 | | - pull_request: |
7 | | - branches: [master, develop] |
8 | | - types: [opened, synchronize, reopened] |
| 4 | + push: |
| 5 | + branches: [master, develop] |
| 6 | + pull_request: |
| 7 | + branches: [master, develop] |
| 8 | + types: [opened, synchronize, reopened] |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - test: |
12 | | - runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - fail-fast: false |
15 | | - matrix: |
16 | | - php: [8.2, 8.3] |
17 | | - laravel: [10.*, 11.*, 12.*] |
18 | | - dependency-version: [prefer-lowest, prefer-stable] |
19 | | - include: |
20 | | - - laravel: 10.* |
21 | | - testbench: 8.* |
22 | | - - laravel: 11.* |
23 | | - testbench: 9.* |
24 | | - - laravel: 12.* |
25 | | - testbench: 10.* |
26 | | - exclude: |
27 | | - - laravel: 12.* |
28 | | - php: 8.2 |
29 | | - |
30 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
31 | | - |
32 | | - steps: |
33 | | - - name: Checkout code |
34 | | - uses: actions/checkout@v5 |
35 | | - |
36 | | - - name: Setup PHP |
37 | | - uses: shivammathur/setup-php@v2 |
38 | | - with: |
39 | | - php-version: ${{ matrix.php }} |
40 | | - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv |
41 | | - coverage: none |
42 | | - |
43 | | - - name: Setup problem matchers |
44 | | - run: | |
45 | | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
46 | | - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
47 | | -
|
48 | | - - name: Install dependencies |
49 | | - run: | |
50 | | - COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --with="laravel/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}" |
51 | | -
|
52 | | - - name: List Installed Dependencies |
53 | | - run: composer show -D |
54 | | - |
55 | | - - name: Execute tests |
56 | | - run: php -d memory_limit=512M vendor/bin/phpunit |
57 | | - |
58 | | - - name: Check code style |
59 | | - run: vendor/bin/phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests |
| 11 | + test: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + php: [8.2, 8.3] |
| 17 | + laravel: [10.*, 11.*, 12.*] |
| 18 | + dependency-version: [prefer-lowest, prefer-stable] |
| 19 | + include: |
| 20 | + - laravel: 10.* |
| 21 | + testbench: 8.* |
| 22 | + - laravel: 11.* |
| 23 | + testbench: 9.* |
| 24 | + - laravel: 12.* |
| 25 | + testbench: 10.* |
| 26 | + exclude: |
| 27 | + - laravel: 12.* |
| 28 | + php: 8.2 |
| 29 | + |
| 30 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
| 31 | + |
| 32 | + steps: |
| 33 | + - name: Checkout code |
| 34 | + uses: actions/checkout@v5 |
| 35 | + |
| 36 | + - name: Setup PHP |
| 37 | + uses: shivammathur/setup-php@v2 |
| 38 | + with: |
| 39 | + php-version: ${{ matrix.php }} |
| 40 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv |
| 41 | + coverage: none |
| 42 | + |
| 43 | + - name: Setup problem matchers |
| 44 | + run: | |
| 45 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 46 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 47 | +
|
| 48 | + - name: Install dependencies |
| 49 | + run: | |
| 50 | + COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --with="laravel/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}" |
| 51 | +
|
| 52 | + - name: List Installed Dependencies |
| 53 | + run: composer show -D |
| 54 | + |
| 55 | + - name: Execute tests |
| 56 | + run: php -d memory_limit=512M vendor/bin/phpunit |
| 57 | + |
| 58 | + - name: Check code style |
| 59 | + run: vendor/bin/phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests |
0 commit comments