File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-latest
11
+ runs-on : ${{matrix.os}}
12
12
strategy :
13
13
matrix :
14
- php : [7.1, 7.2, 7.3]
14
+ php : [7.1, 7.2, 7.3, 7.4]
15
+ os : ['ubuntu-latest']
15
16
services :
16
17
mongo :
17
18
image : mongo
@@ -25,18 +26,25 @@ jobs:
25
26
MYSQL_ALLOW_EMPTY_PASSWORD : ' yes'
26
27
MYSQL_DATABASE : ' unittest'
27
28
MYSQL_ROOT_PASSWORD :
29
+ name : PHP ${{ matrix.php }} Test ${{ matrix.env }}
28
30
29
31
steps :
30
32
- uses : actions/checkout@v1
31
33
- name : Show php version
32
34
run : php${{ matrix.php }} -v && composer -V
33
- - name : Show docker and docker-compose versions
34
- run : |
35
- docker version
36
35
- name : Debug if needed
37
- run : if [[ "$DEBUG" == "true" ]]; then env; fi
36
+ run : if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
38
37
env :
39
38
DEBUG : ${{secrets.DEBUG}}
39
+ - name : Get Composer Cache Directory
40
+ id : composer-cache
41
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
42
+ - name : Cache dependencies
43
+ uses : actions/cache@v1
44
+ with :
45
+ path : ${{ steps.composer-cache.outputs.dir }}
46
+ key : ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
47
+ restore-keys : ${{ matrix.os }}-composer-
40
48
- name : Install dependencies
41
49
run : |
42
50
composer install --no-interaction
You can’t perform that action at this time.
0 commit comments