Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 35a0e3e

Browse files
authored
Added PHP 8.0 & PHP setup
1 parent b9ec590 commit 35a0e3e

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
php: ['7.2', '7.3', '7.4']
22-
laravel: ['6.*', '7.*', '8.*']
23-
prefer: ['prefer-lowest', 'prefer-stable']
21+
php:
22+
- '7.2'
23+
- '7.3'
24+
- '7.4'
25+
- '8.0'
26+
laravel:
27+
- 6.*
28+
- 7.*
29+
- 8.*
30+
prefer:
31+
- 'prefer-lowest'
32+
- 'prefer-stable'
2433
include:
2534
- laravel: '6.*'
2635
testbench: '4.*'
@@ -34,6 +43,13 @@ jobs:
3443
steps:
3544
- uses: actions/checkout@v1
3645

46+
- name: Setup PHP
47+
uses: shivammathur/setup-php@v2
48+
with:
49+
php-version: ${{ matrix.php }}
50+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
51+
coverage: pcov
52+
3753
- name: Setup Redis
3854
uses: supercharge/[email protected]
3955
with:
@@ -52,11 +68,11 @@ jobs:
5268
5369
- name: Run tests for Local
5470
run: |
55-
REPLICATION_MODE=local phpunit --coverage-text --coverage-clover=coverage_local.xml
71+
REPLICATION_MODE=local vendor/bin/phpunit --coverage-text --coverage-clover=coverage_local.xml
5672
5773
- name: Run tests for Redis
5874
run: |
59-
REPLICATION_MODE=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
75+
REPLICATION_MODE=redis vendor/bin/phpunit --coverage-text --coverage-clover=coverage_redis.xml
6076
6177
- uses: codecov/codecov-action@v1
6278
with:

0 commit comments

Comments
 (0)