|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | php-tests: |
10 | | - runs-on: ${{ matrix.os }} |
| 10 | + runs-on: ubuntu-latest |
11 | 11 |
|
12 | 12 | strategy: |
13 | 13 | matrix: |
14 | | - php: [8.1, 8.0, 7.4] |
15 | | - laravel: [9.*, 8.*, 7.*, 6.*] |
16 | | - os: [ubuntu-latest] |
17 | | - include: |
18 | | - - laravel: 9.* |
19 | | - testbench: 7.* |
20 | | - - laravel: 8.* |
21 | | - testbench: 6.* |
22 | | - - laravel: 7.* |
23 | | - testbench: 5.* |
24 | | - - laravel: 6.* |
25 | | - testbench: 4.* |
26 | | - exclude: |
27 | | - - laravel: 9.* |
28 | | - php: 7.4 |
29 | | - - laravel: 6.* |
30 | | - php: 8.1 |
31 | | - - laravel: 7.* |
32 | | - php: 8.1 |
33 | | - |
34 | | - name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} |
| 14 | + payload: |
| 15 | + - { queue: 'github-actions-laravel9-php81', laravel: '9.*', php: '8.1', 'testbench': '7.*'} |
| 16 | + - { queue: 'github-actions-laravel9-php80', laravel: '9.*', php: '8.0', 'testbench': '7.*'} |
| 17 | + - { queue: 'github-actions-laravel8-php81', laravel: '8.*', php: '8.1', 'testbench': '6.*'} |
| 18 | + - { queue: 'github-actions-laravel8-php80', laravel: '8.*', php: '8.0', 'testbench': '6.*'} |
| 19 | + - { queue: 'github-actions-laravel8-php74', laravel: '8.*', php: '7.4', 'testbench': '6.*'} |
| 20 | + - { queue: 'github-actions-laravel7-php80', laravel: '7.*', php: '8.0', 'testbench': '5.*' } |
| 21 | + - { queue: 'github-actions-laravel7-php74', laravel: '7.*', php: '7.4', 'testbench': '5.*' } |
| 22 | + - { queue: 'github-actions-laravel6-php80', laravel: '6.*', php: '8.0', 'testbench': '4.*' } |
| 23 | + - { queue: 'github-actions-laravel6-php74', laravel: '6.*', php: '7.4', 'testbench': '4.*' } |
| 24 | + |
| 25 | + name: PHP ${{ matrix.payload.php }} - Laravel ${{ matrix.payload.laravel }} |
35 | 26 |
|
36 | 27 | steps: |
37 | 28 | - name: Checkout code |
|
40 | 31 | - name: Setup PHP |
41 | 32 | uses: shivammathur/setup-php@v2 |
42 | 33 | with: |
43 | | - php-version: ${{ matrix.php }} |
| 34 | + php-version: ${{ matrix.payload.php }} |
44 | 35 | extensions: mbstring, dom, fileinfo |
45 | 36 | coverage: none |
46 | 37 |
|
|
51 | 42 |
|
52 | 43 | - name: Install dependencies |
53 | 44 | run: | |
54 | | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 45 | + composer require "laravel/framework:${{ matrix.payload.laravel }}" "orchestra/testbench:${{ matrix.payload.testbench }}" --no-interaction --no-update |
55 | 46 | composer update --prefer-stable --prefer-dist --no-interaction --no-suggest |
56 | 47 | - name: Execute tests |
57 | 48 | env: |
|
66 | 57 | CI_CLOUD_TASKS_LOCATION: ${{ secrets.CI_CLOUD_TASKS_LOCATION }} |
67 | 58 | CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL: ${{ secrets.CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL }} |
68 | 59 | CI_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.CI_SERVICE_ACCOUNT_JSON_KEY }} |
| 60 | + CI_CLOUD_TASKS_CUSTOM_QUEUE: ${{ matrix.payload.queue }} |
69 | 61 | run: | |
70 | 62 | echo $CI_SERVICE_ACCOUNT_JSON_KEY > tests/Support/gcloud-key-valid.json |
71 | 63 | vendor/bin/phpunit |
0 commit comments