Skip to content

Commit 5ebbcd0

Browse files
authored
Added PHP8.1 and Laravel 9 support
Added PHP8.1 and Laravel 9 support
2 parents 0595fe1 + a884d61 commit 5ebbcd0

File tree

2 files changed

+20
-26
lines changed

2 files changed

+20
-26
lines changed

.github/workflows/run-tests.yml

+16-22
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [7.4, 8.0]
12-
laravel: [8]
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [9.*, 8.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
14+
include:
15+
- laravel: 9.*
16+
testbench: 7.*
17+
- laravel: 8.*
18+
testbench: 6.23
19+
exclude:
20+
- laravel: 9.*
21+
php: 7.4
22+
- laravel: 9.*
23+
php: 7.3
1424

1525
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
1626

@@ -35,27 +45,11 @@ jobs:
3545
php-version: ${{ matrix.php }}
3646
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
3747
coverage: none
38-
tools: composer:v2
3948

40-
- name: Setup problem matchers for PHP
41-
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
42-
43-
- name: Setup problem matchers for PHPUnit
44-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
45-
46-
- name: Select Laravel version
47-
uses: nick-invision/retry@v1
48-
with:
49-
timeout_minutes: 5
50-
max_attempts: 5
51-
command: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-interaction --no-update --ignore-platform-reqs
52-
53-
- name: Install Dependencies
54-
uses: nick-invision/retry@v1
55-
with:
56-
timeout_minutes: 5
57-
max_attempts: 5
58-
command: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --prefer-dist -o -n --ignore-platform-reqs
49+
- name: Install dependencies
50+
run: |
51+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
52+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5953
6054
- name: Execute tests
6155
run: vendor/bin/phpunit

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
}
3131
],
3232
"require": {
33-
"php": "^7.3|^8.0",
34-
"illuminate/database": "^7.30|^8.0",
35-
"illuminate/support": "^7.30|^8.0"
33+
"php": "^7.3|^8.0|^8.1",
34+
"illuminate/database": "^7.30|^8.0|^9.0",
35+
"illuminate/support": "^7.30|^8.0|^9.0"
3636
},
3737
"require-dev": {
3838
"ext-pdo_sqlite": "*",
3939
"friendsofphp/php-cs-fixer": "^3.0",
40-
"orchestra/testbench": "^5.2|^6.11",
40+
"orchestra/testbench": "^5.0|^6.0|^7.0",
4141
"phpunit/phpunit": "^9.5.1",
4242
"spatie/macroable": "^1.0"
4343
},

0 commit comments

Comments
 (0)