Skip to content

Commit fee9a94

Browse files
authored
Test Laravel 9 (#1)
* Test Laravel 9 * Update composer.json
1 parent 108e221 commit fee9a94

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php: [ 7.3, 7.4 ]
17-
laravel: [ 6.*, 7.*, 8.* ]
18-
include:
19-
- laravel: 8.*
20-
testbench: 6.*
16+
php: [ 7.3, 7.4, 8.0, 8.1 ]
17+
laravel: [ 6.*, 7.*, 8.*, 9.* ]
18+
exclude:
19+
- laravel: 9.*
20+
php: 7.3
21+
- laravel: 9.*
22+
php: 7.4
2123
- laravel: 7.*
22-
testbench: 5.*
24+
php: 8.1
2325
- laravel: 6.*
24-
testbench: 4.*
26+
php: 8.1
2527

2628
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2729

@@ -46,13 +48,13 @@ jobs:
4648
php-version: ${{ matrix.php }}
4749
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
4850
coverage: none
49-
tools: composer:v1
51+
tools: composer:v2
5052

5153
- name: Install dependencies
5254
run: |
5355
composer --version
54-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
55-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
56+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
57+
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
5658
composer dump
5759
5860
- name: Execute tests

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"awobaz/compoships": "^2.1"
2121
},
2222
"require-dev": {
23-
"orchestra/testbench": "4.*|5.*|6.*",
24-
"phpunit/phpunit": "^8.0",
23+
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
2524
"laravel/legacy-factories": "^1.1",
2625
"squizlabs/php_codesniffer": "^3.6"
2726
},

0 commit comments

Comments
 (0)