Skip to content

Commit

Permalink
Merge pull request #5 from patinthehat/add-php81-support
Browse files Browse the repository at this point in the history
Add PHP 8.1 Support
  • Loading branch information
freekmurze committed Nov 28, 2021
2 parents 9ffc167 + 0d31fc2 commit 271bc7b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.0, 7.4]
laravel: [7.*]
php: [8.1, 8.0, 7.4]
laravel: [7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 7.*
testbench: 5.*

- laravel: 8.*
testbench: 6.*

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

steps:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
],
"require": {
"php": "^7.4|^8.0",
"spatie/url": "^1.3|^2.0"
"spatie/url": "^1.3.5|^2.0"
},
"require-dev": {
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^5.0|^6.23",
"phpunit/phpunit": "^9.5",
"spatie/phpunit-snapshot-assertions": "^4.2"
},
"autoload": {
Expand All @@ -36,8 +36,7 @@
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
},
"config": {
"sort-packages": true
Expand All @@ -54,4 +53,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

0 comments on commit 271bc7b

Please sign in to comment.