Skip to content

Commit b56cedd

Browse files
committed
Prepare run-test workflow
1 parent 20755ce commit b56cedd

File tree

2 files changed

+12
-33
lines changed

2 files changed

+12
-33
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,17 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest]
1515
payload:
16+
- { laravel: '11.*', php: '8.3', 'testbench': '9.*' }
17+
- { laravel: '11.*', php: '8.2', 'testbench': '9.*' }
1618
- { laravel: '10.*', php: '8.3', 'testbench': '8.*'}
1719
- { laravel: '10.*', php: '8.2', 'testbench': '8.*'}
1820
- { laravel: '10.*', php: '8.1', 'testbench': '8.*'}
19-
- { laravel: '9.*', php: '8.3', 'testbench': '7.*'}
20-
- { laravel: '9.*', php: '8.2', 'testbench': '7.*'}
21-
- { laravel: '9.*', php: '8.1', 'testbench': '7.*'}
22-
- { laravel: '9.*', php: '8.0', 'testbench': '7.*'}
23-
- { laravel: '8.*', php: '8.1', 'testbench': '6.*'}
24-
- { laravel: '8.*', php: '8.0', 'testbench': '6.*'}
25-
- { laravel: '8.*', php: '7.4', 'testbench': '6.*'}
26-
- { laravel: '7.*', php: '8.0', 'testbench': '5.*' }
27-
- { laravel: '7.*', php: '7.4', 'testbench': '5.*' }
28-
- { laravel: '6.*', php: '8.0', 'testbench': '4.*' }
29-
- { laravel: '6.*', php: '7.4', 'testbench': '4.*' }
3021

3122
name: PHP ${{ matrix.payload.php }} - Laravel ${{ matrix.payload.laravel }}
3223

3324
services:
3425
mysql:
35-
image: mysql:5.7.27
26+
image: mysql:8
3627
env:
3728
MYSQL_USER: root
3829
MYSQL_ROOT_PASSWORD: root
@@ -66,4 +57,4 @@ jobs:
6657
CI_DB_DATABASE: test
6758
CI_DB_USERNAME: root
6859
CI_DB_PASSWORD: root
69-
run: vendor/bin/phpunit
60+
run: composer test

composer.json

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,22 @@
2626
}
2727
},
2828
"require": {
29-
"ext-json": "*"
29+
"ext-json": "*",
30+
"laravel/framework": "^10.0|^11.0"
3031
},
3132
"require-dev": {
3233
"mockery/mockery": "^1.2",
33-
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0"
34+
"orchestra/testbench": "^8.0|^9.0",
35+
"laravel/pint": "^1.14"
3436
},
3537
"minimum-stability": "dev",
3638
"prefer-stable": true,
3739
"scripts": {
38-
"l10": [
39-
"composer require laravel/framework:10.* orchestra/testbench:8.* --no-interaction --no-update",
40-
"composer update --prefer-stable --prefer-dist --no-interaction"
41-
],
42-
"l9": [
43-
"composer require laravel/framework:9.* orchestra/testbench:7.* --no-interaction --no-update",
44-
"composer update --prefer-stable --prefer-dist --no-interaction"
45-
],
46-
"l8": [
47-
"composer require laravel/framework:8.* orchestra/testbench:6.* --no-interaction --no-update",
48-
"composer update --prefer-stable --prefer-dist --no-interaction"
40+
"l11": [
41+
"composer update laravel/framework:11.* orchestra/testbench:9.* --with-all-dependencies"
4942
],
50-
"l7": [
51-
"composer require laravel/framework:8.* orchestra/testbench:6.* --no-interaction --no-update",
52-
"composer update --prefer-stable --prefer-dist --no-interaction"
53-
],
54-
"l6": [
55-
"composer require laravel/framework:8.* orchestra/testbench:6.* --no-interaction --no-update",
56-
"composer update --prefer-stable --prefer-dist --no-interaction"
43+
"l10": [
44+
"composer update laravel/framework:10.* orchestra/testbench:8.* --with-all-dependencies"
5745
],
5846
"test": [
5947
"CI_DB_DRIVER=sqlite CI_DB_DATABASE=:memory: phpunit"

0 commit comments

Comments
 (0)