Skip to content

Commit

Permalink
Merge pull request #20 from sourcetoad/php8-support
Browse files Browse the repository at this point in the history
PHP 8 Support
  • Loading branch information
Jasonej authored Jan 11, 2021
2 parents 995fcb8 + ecd961b commit 8ffbd95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,25 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4]
php: [7.4, 8.0]
stability: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"require": {
"php": "^7.4",
"php": "^7.4|^8.0",
"laravel/framework": "^7.0|^8.0"
},
"require-dev": {
Expand Down

0 comments on commit 8ffbd95

Please sign in to comment.