Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit 61217e3

Browse files
authored
Support for PHP 8.1 (#54)
1 parent 65e132e commit 61217e3

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

.github/workflows/js.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ main ]
8+
branches: [main]
99
pull_request:
10-
branches: [ main ]
10+
branches: [main]
1111

1212
jobs:
1313
build:
@@ -19,12 +19,12 @@ jobs:
1919
node-version: [12.x]
2020

2121
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm ci
28-
- run: npm install
29-
- run: npm run test:2
30-
- run: npm run test:3
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm install
29+
- run: npm run test:2
30+
- run: npm run test:3

.github/workflows/php.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.0, 7.4]
11+
php: [8.1, 8.0, 7.4]
1212
laravel: [8.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:
15-
- laravel: 8.*
16-
testbench: 6.*
15+
- laravel: 8.*
16+
testbench: 6.*
1717

1818
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
1919

2020
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v2
21+
- name: Checkout code
22+
uses: actions/checkout@v2
2323

24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
29-
coverage: none
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
29+
coverage: none
3030

31-
- name: Install dependencies
32-
run: |
33-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
34-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
31+
- name: Install dependencies
32+
run: |
33+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
34+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3535
36-
- name: Execute tests
37-
run: vendor/bin/phpunit
36+
- name: Execute tests
37+
run: vendor/bin/phpunit

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ We proudly support the community by developing Laravel packages and giving them
3434
* [Laravel 8](https://laravel.com/)
3535
* [Inertia.js](https://inertiajs.com/)
3636
* [Tailwind CSS v2](https://tailwindcss.com/) + [Forms plugin](https://github.com/tailwindlabs/tailwindcss-forms)
37-
* PHP 7.4 + 8.0
37+
* PHP 7.4 + 8.0 + 8.1
3838

3939
## Roadmap
4040

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.4|^8.0",
15-
"illuminate/support": "^8.0"
14+
"php": "^7.4|^8.0|^8.1",
15+
"illuminate/support": "^8.67"
1616
},
1717
"require-dev": {
18-
"inertiajs/inertia-laravel": "^0.4.0",
19-
"orchestra/testbench": " ^6.0"
18+
"inertiajs/inertia-laravel": "^0.4.5",
19+
"orchestra/testbench": "^6.23",
20+
"phpunit/phpunit": "^9.4"
2021
},
2122
"autoload": {
2223
"psr-4": {

0 commit comments

Comments
 (0)