Skip to content

Commit 9cb0ce9

Browse files
authored
Php 8 support (#12)
* Allow PHP 8.x and upgrade dev dependencies * Run code style with PHP 8.0 * Add PHP 8.0 and 8.1 to test suite matrix * Enable auto-commit for code style changes
1 parent 3308143 commit 9cb0ce9

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
php: [7.3, 7.4]
18+
php: [7.3, 7.4, 8.0, 8.1]
1919
laravel: ["8.*"]
2020

2121
steps:

.github/workflows/code-style.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
1212
name: Check PHP code style
1313
runs-on: ubuntu-latest
1414

15-
strategy:
16-
fail-fast: true
17-
matrix:
18-
php: [7.4]
19-
2015
steps:
2116
- uses: actions/checkout@v2
2217
with:
@@ -26,18 +21,24 @@ jobs:
2621
uses: actions/cache@v1
2722
with:
2823
path: ~/.composer/cache/files
29-
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
24+
key: dependencies-php-code-style-composer-${{ hashFiles('composer.json') }}
3025

3126
- name: Setup PHP
3227
uses: shivammathur/setup-php@v2
3328
with:
34-
php-version: ${{ matrix.php }}
29+
php-version: 8.0
30+
tools: composer:v2
3531
extensions: dom, curl, libxml, mbstring, zip
3632
coverage: none
3733

3834
- name: Install dependencies
3935
run: |
40-
composer install --prefer-dist --no-scripts
36+
composer update --prefer-stable --prefer-dist --no-interaction --no-progress
4137
4238
- name: Run CS Fixer
43-
run: ./vendor/bin/php-cs-fixer fix --dry-run
39+
run: ./vendor/bin/php-cs-fixer fix
40+
41+
- name: Commit changes
42+
uses: stefanzweifel/git-auto-commit-action@v4
43+
with:
44+
commit_message: Fix styling

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.3",
20+
"php": "^7.3|^8.0",
2121
"illuminate/auth": "^8.0",
2222
"illuminate/console": "^8.0",
2323
"illuminate/encryption": "^8.0",
@@ -28,9 +28,9 @@
2828
"socialiteproviders/dropbox": "^4.1"
2929
},
3030
"require-dev": {
31-
"fzaninotto/faker": "~1.9.1",
32-
"mockery/mockery": "^1.3.1",
33-
"phpunit/phpunit": "^8.5.19|^9.5.8",
31+
"fakerphp/faker": "^1.9.1",
32+
"mockery/mockery": "^1.4.4",
33+
"phpunit/phpunit": "^9.5.10",
3434
"orchestra/testbench": "^6.15",
3535
"friendsofphp/php-cs-fixer": "^2.16"
3636
},

0 commit comments

Comments
 (0)