Skip to content

Commit f59e6df

Browse files
authored
Laravel 9 Support (#11)
2 parents d0ad9ee + 8c9e7f8 commit f59e6df

File tree

3 files changed

+20
-69
lines changed

3 files changed

+20
-69
lines changed

.github/workflows/tests.yml

+10-63
Original file line numberDiff line numberDiff line change
@@ -7,89 +7,36 @@ on:
77
- cron: '0 0 * * *'
88

99
jobs:
10-
linux_tests:
10+
tests:
1111

12-
runs-on: ubuntu-latest
13-
services:
14-
mysql:
15-
image: mysql:5.7
16-
env:
17-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
18-
MYSQL_DATABASE: forge
19-
ports:
20-
- 33306:3306
21-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
22-
redis:
23-
image: redis:5.0
24-
ports:
25-
- 6379:6379
26-
options: --entrypoint redis-server
12+
runs-on: ubuntu-18.04
2713
strategy:
2814
fail-fast: true
2915
matrix:
30-
php: [7.3, 7.4]
31-
stability: [prefer-lowest, prefer-stable]
32-
33-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
34-
35-
steps:
36-
- name: Checkout code
37-
uses: actions/checkout@v2
38-
39-
- name: Setup PHP
40-
uses: shivammathur/setup-php@v2
41-
with:
42-
php-version: ${{ matrix.php }}
43-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
44-
tools: composer:v2
45-
coverage: none
46-
47-
- name: Setup Memcached
48-
uses: niden/actions-memcached@v7
49-
50-
- name: Install dependencies
51-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
52-
53-
- name: Execute tests
54-
run: vendor/bin/phpunit --verbose
55-
env:
56-
DB_PORT: ${{ job.services.mysql.ports[3306] }}
57-
DB_USERNAME: root
58-
59-
windows_tests:
60-
61-
runs-on: windows-latest
62-
strategy:
63-
fail-fast: true
64-
matrix:
65-
php: [7.3, 7.4]
66-
include:
16+
php: [7.3, 7.4, 8.0, 8.1]
17+
laravel: [6.0, 7.0, 8.0, 9.0]
18+
exclude:
6719
- php: 7.3
68-
stability: prefer-lowest
20+
laravel: 9
6921
- php: 7.4
70-
stability: prefer-stable
22+
laravel: 9
7123

72-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows
24+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
7325

7426
steps:
75-
- name: Set git to use LF
76-
run: |
77-
git config --global core.autocrlf false
78-
git config --global core.eol lf
7927
- name: Checkout code
8028
uses: actions/checkout@v2
8129

8230
- name: Setup PHP
8331
uses: shivammathur/setup-php@v2
8432
with:
8533
php-version: ${{ matrix.php }}
86-
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp
34+
extensions: dom, curl, libxml, mbstring, zip
8735
tools: composer:v2
8836
coverage: none
89-
ini-values: memory_limit=512M
9037

9138
- name: Install dependencies
92-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
39+
run: composer update --prefer-dist --no-interaction --no-progress
9340

9441
- name: Execute tests
9542
run: vendor/bin/phpunit --verbose

.styleci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
preset: laravel
1+
php:
2+
preset: laravel
3+
version: 8
4+
disabled:
5+
- no_unused_imports

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
],
1818
"require": {
1919
"php": "^7.3|^8.0",
20-
"illuminate/support": "^8.0",
21-
"illuminate/database": "^8.0"
20+
"illuminate/support": "^7.0|^8.0|^9.0",
21+
"illuminate/database": "^7.0|^8.0|^9.0"
2222
},
2323
"require-dev": {
24-
"illuminate/pagination": "^8.0",
25-
"orchestra/testbench": "^6.3",
26-
"phpunit/phpunit": "^8.4|^9.0"
24+
"illuminate/pagination": "^7.0|^8.0|^9.0",
25+
"orchestra/testbench": "^6.3|^7.0",
26+
"phpunit/phpunit": "^8.4|^9.1"
2727
},
2828
"autoload": {
2929
"psr-4": {

0 commit comments

Comments
 (0)