This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,6 @@ on: [push, pull_request]
5
5
jobs :
6
6
test :
7
7
runs-on : ${{ matrix.os }}
8
- services :
9
- redis :
10
- image : redis:${{ matrix.redis }}
11
- ports :
12
- - 6379:6379
13
- options : --entrypoint redis-server
14
8
strategy :
15
9
fail-fast : false
16
10
matrix :
31
25
- name : Checkout code
32
26
uses : actions/checkout@v1
33
27
28
+ - name : Setup Redis ${{ matrix.redis }}
29
+ uses :
supercharge/[email protected]
30
+ with :
31
+ redis-version : ${{ matrix.redis }}
32
+
34
33
- name : Cache dependencies
35
34
uses : actions/cache@v1
36
35
with :
@@ -49,10 +48,12 @@ jobs:
49
48
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
50
49
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
51
50
52
- - name : Execute tests
53
- run : |
54
- REPLICATION_DRIVER=local phpunit --coverage-text --coverage-clover=coverage_local.xml
55
- REPLICATION_DRIVER=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
51
+ - name : Execute tests with Local driver
52
+ run : REPLICATION_DRIVER=local phpunit --coverage-text --coverage-clover=coverage_local.xml
53
+
54
+ - name : Execute tests with Redis driver
55
+ run : REPLICATION_DRIVER=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
56
+ if : ${{ matrix.os == 'ubuntu-latest' }}
56
57
57
58
- uses : codecov/codecov-action@v1
58
59
with :
You can’t perform that action at this time.
0 commit comments