Skip to content

Commit b36c07b

Browse files
committed
run tests on PHP8
1 parent 1316c90 commit b36c07b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
test:
77
runs-on: ${{ matrix.os }}
88
strategy:
9-
fail-fast: true
9+
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [7.4]
12+
php: [7.4, 8.0]
1313
laravel: [7.*, 8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
@@ -24,12 +24,6 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@v2
2626

27-
- name: Cache dependencies
28-
uses: actions/cache@v2
29-
with:
30-
path: ~/.composer/cache/files
31-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
32-
3327
- name: Setup PHP
3428
uses: shivammathur/setup-php@v2
3529
with:
@@ -42,5 +36,10 @@ jobs:
4236
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4337
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4438
39+
- name: Setup Problem Matches
40+
run: |
41+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
42+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
43+
4544
- name: Execute tests
4645
run: vendor/bin/phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"require": {
33-
"php" : "^7.4",
33+
"php" : "^7.4|^8.0",
3434
"illuminate/support": "^7.0|^8.0",
3535
"illuminate/http": "^7.0|^8.0",
3636
"illuminate/contracts": "^7.0|^8.0"

0 commit comments

Comments
 (0)