Skip to content

Commit 3b3580d

Browse files
authored
Merge pull request #20 from alecpl/dev/php81
Support PHP 8.1
2 parents aa0e5b4 + 5131ad9 commit 3b3580d

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/php81.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
checks:
13+
name: Check PHP 8.1
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up PHP 8.1
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: '8.1'
24+
25+
- name: Install Dependencies
26+
run: composer install --prefer-dist --ignore-platform-reqs --no-interaction
27+
28+
- name: Check code styling
29+
run: composer ecs-check
30+
31+
- name: Create keys
32+
run: sh ./bin/create_keys
33+
34+
- name: Run unit and feature tests
35+
run: composer test

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"passport"
2424
],
2525
"require": {
26-
"php": "^8.2",
26+
"php": "^8.1",
2727
"lcobucci/jwt": "^4.0|^4.3|^5.0",
2828
"league/oauth2-server": "^8.2.0",
2929
"laravel/passport": "^11.0|^12.0",

0 commit comments

Comments
 (0)