Added PHP 8.0 & PHP setup

This commit is contained in:
rennokki 2020-11-20 11:08:00 +02:00 committed by GitHub
parent b9ec590a4f
commit 35a0e3e822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 5 deletions

View File

@ -18,9 +18,18 @@ jobs:
strategy:
matrix:
php: ['7.2', '7.3', '7.4']
laravel: ['6.*', '7.*', '8.*']
prefer: ['prefer-lowest', 'prefer-stable']
php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
laravel:
- 6.*
- 7.*
- 8.*
prefer:
- 'prefer-lowest'
- 'prefer-stable'
include:
- laravel: '6.*'
testbench: '4.*'
@ -34,6 +43,13 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: pcov
- name: Setup Redis
uses: supercharge/redis-github-action@1.1.0
with:
@ -52,11 +68,11 @@ jobs:
- name: Run tests for Local
run: |
REPLICATION_MODE=local phpunit --coverage-text --coverage-clover=coverage_local.xml
REPLICATION_MODE=local vendor/bin/phpunit --coverage-text --coverage-clover=coverage_local.xml
- name: Run tests for Redis
run: |
REPLICATION_MODE=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
REPLICATION_MODE=redis vendor/bin/phpunit --coverage-text --coverage-clover=coverage_redis.xml
- uses: codecov/codecov-action@v1
with: