Running redis driver tests only on linux
This commit is contained in:
parent
64d11c4457
commit
1446cf8610
|
|
@ -5,12 +5,6 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
services:
|
|
||||||
redis:
|
|
||||||
image: redis:${{ matrix.redis }}
|
|
||||||
ports:
|
|
||||||
- 6379:6379
|
|
||||||
options: --entrypoint redis-server
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -31,6 +25,11 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Setup Redis ${{ matrix.redis }}
|
||||||
|
uses: supercharge/redis-github-action@1.1.0
|
||||||
|
with:
|
||||||
|
redis-version: ${{ matrix.redis }}
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -49,10 +48,12 @@ jobs:
|
||||||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
||||||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
||||||
|
|
||||||
- name: Execute tests
|
- name: Execute tests with Local driver
|
||||||
run: |
|
run: REPLICATION_DRIVER=local phpunit --coverage-text --coverage-clover=coverage_local.xml
|
||||||
REPLICATION_DRIVER=local phpunit --coverage-text --coverage-clover=coverage_local.xml
|
|
||||||
REPLICATION_DRIVER=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
|
- name: Execute tests with Redis driver
|
||||||
|
run: REPLICATION_DRIVER=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue