Skip to content

Commit 9c8db84

Browse files
committed
Fix Github Actions yml
1 parent 106364b commit 9c8db84

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ on:
77

88
jobs:
99
php-tests:
10-
runs-on: ${{ matrix.os }}
10+
runs-on: ${{ matrix.payload.os }}
1111

1212
strategy:
1313
matrix:
14-
php: [8.1, 8.0, 7.4, 7.3, 7.2]
15-
laravel: [9.*, 8.*, 7.*, 6.*]
1614
os: [ubuntu-latest]
1715
payload:
1816
- { queue: 'github-actions-laravel9-php81', laravel: '10.*', php: '8.2', 'testbench': '8.*' }
@@ -24,7 +22,7 @@ jobs:
2422
- { queue: 'github-actions-laravel8-php80', laravel: '8.*', php: '8.0', 'testbench': '6.*' }
2523
- { queue: 'github-actions-laravel8-php74', laravel: '8.*', php: '7.4', 'testbench': '6.*' }
2624

27-
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
25+
name: PHP ${{ matrix.payload.php }} - Laravel ${{ matrix.payload.laravel }}
2826

2927
services:
3028
mysql:
@@ -46,13 +44,13 @@ jobs:
4644
- name: Setup PHP
4745
uses: shivammathur/setup-php@v2
4846
with:
49-
php-version: ${{ matrix.php }}
47+
php-version: ${{ matrix.payload.php }}
5048
extensions: mbstring, dom, fileinfo, mysql
5149
coverage: none
5250

5351
- name: Install dependencies
5452
run: |
55-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
53+
composer require "laravel/framework:${{ matrix.payload.laravel }}" "orchestra/testbench:${{ matrix.payload.testbench }}" --no-interaction --no-update
5654
composer update --prefer-stable --prefer-dist --no-interaction
5755
- name: Execute tests
5856
env:

0 commit comments

Comments
 (0)