Skip to content

Commit

Permalink
Update PHP to ^8.0 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenluijten committed Feb 5, 2022
1 parent d0e400f commit ca9d802
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Tests
on: [push, pull_request]
on: [push]

jobs:
phpunit:
name: PHP ${{ matrix.php }} (${{ matrix.composer_flags }})
name: PHP ${{ matrix.php }} (${{ matrix.dependency-version }})
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
composer_flags: ['--prefer-lowest', '']
php: [8.0, 8.1]
dependency-version: [lowest, highest]
exclude:
- php: 8.1
dependency-version: lowest
steps:
- uses: actions/checkout@v2.4.0

Expand All @@ -19,8 +22,11 @@ jobs:
extensions: mbstring
coverage: none

- name: Install Composer dependencies
run: composer update --no-interaction --no-ansi --no-suggest --prefer-dist ${{ matrix.composer_flags }}
- name: Install dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.dependency-version }}
composer-options: "--no-suggest --prefer-dist"

- name: Execute tests
run: vendor/bin/phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"authors": [
{
"name": "Sven Luijten",
"email": "svenluijten1995@gmail.com",
"email": "contact@svenluijten.com",
"homepage": "https://svenluijten.com"
}
],
"require": {
"php": ">=7.1.3",
"illuminate/support": "^5.7 || ^6.0"
"php": "^8.0",
"illuminate/support": "^8.0"
},
"require-dev": {
"graham-campbell/testbench": "^5.1"
"graham-campbell/testbench": "^5.5.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ca9d802

Please sign in to comment.