Skip to content

Commit 3005fea

Browse files
authored
Add support for Laravel 9.x & PHP 8.x
1 parent cbb375e commit 3005fea

File tree

4 files changed

+36
-23
lines changed

4 files changed

+36
-23
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Run tests
22

3-
on:
4-
push:
3+
on: [push, pull_request]
4+
55

66
jobs:
77
php-tests:
88
runs-on: ${{ matrix.os }}
99

1010
strategy:
1111
matrix:
12-
php: [7.4, 7.3, 7.2]
13-
laravel: [8.*, 7.*, 6.*, 5.8.*]
12+
php: [8.0, 7.4, 7.3, 7.2]
13+
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
15-
os: [ubuntu-latest, windows-latest]
15+
os: [ubuntu-latest]
1616
include:
17+
- laravel: 9.*
18+
testbench: 7.*
1719
- laravel: 8.*
1820
testbench: 6.*
1921
- laravel: 7.*
@@ -23,28 +25,40 @@ jobs:
2325
- laravel: 5.8.*
2426
testbench: 3.8.*
2527
exclude:
28+
- php: 8.1
29+
laravel: 5.8.*
30+
- php: 8.0
31+
laravel: 5.8.*
2632
- php: 7.4
2733
laravel: 5.8.*
34+
- php: 7.4
35+
laravel: 9.*
36+
- php: 7.3
37+
laravel: 9.*
2838
- php: 7.2
2939
laravel: 8.*
40+
- php: 7.2
41+
laravel: 9.*
3042

3143
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3244

3345
steps:
3446
- name: Checkout code
35-
uses: actions/checkout@v1
47+
uses: actions/checkout@v3
3648

3749
- name: Setup PHP
38-
uses: shivammathur/setup-php@v1
50+
uses: shivammathur/setup-php@v2
3951
with:
4052
php-version: ${{ matrix.php }}
53+
tools: phpunit
4154
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
4255
coverage: none
4356

4457
- name: Install dependencies
4558
run: |
4659
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
60+
composer clearcache
4761
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4862
4963
- name: Execute tests
50-
run: vendor/bin/phpunit
64+
run: vendor/bin/phpunit -d memory_limit=512M

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to `laravel-svelte-preset` will be documented in this file
44

5+
## v0.2.1 - 2021-06-02
6+
7+
- Add support for Laravel 9
8+
- Add support for PHP 8
9+
- Update Github Actions
10+
511
## v0.2 - 2021-11-16
612

713
- Fix issues with Mix 6 & Webpack 5

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.2",
22-
"illuminate/support": "^5.8|^6.0|^7.0|^8.0",
21+
"php": "^7.2|^8.0",
22+
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0",
2323
"laravel/ui": "^1.2|^2.0|^3.0"
2424
},
2525
"require-dev": {
26-
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0",
26+
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0|^7.0",
2727
"phpunit/phpunit": "^8.0|^9.0"
2828
},
2929
"autoload": {

phpunit.xml.dist

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@
1414
<directory>tests</directory>
1515
</testsuite>
1616
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
17+
<coverage processUncoveredFiles="true">
18+
<include>
19+
<directory suffix=".php">./src</directory>
20+
</include>
21+
</coverage>
2922
</phpunit>

0 commit comments

Comments
 (0)