File tree Expand file tree Collapse file tree 2 files changed +48
-30
lines changed Expand file tree Collapse file tree 2 files changed +48
-30
lines changed Original file line number Diff line number Diff line change
1
+ name : ' CI'
2
+
3
+ on :
4
+ - ' push'
5
+ - ' pull_request'
6
+
7
+ jobs :
8
+ tests :
9
+ name : ' Tests'
10
+
11
+ runs-on : ' ubuntu-latest'
12
+
13
+ strategy :
14
+ matrix :
15
+ include :
16
+ - php-version : ' 7.1'
17
+ composer-options : ' --prefer-stable'
18
+ - php-version : ' 7.2'
19
+ composer-options : ' --prefer-lowest --prefer-stable'
20
+ - php-version : ' 7.3'
21
+ composer-options : ' --prefer-stable'
22
+
23
+ steps :
24
+ - name : ' Check out'
25
+ uses : ' actions/checkout@v2'
26
+
27
+ - name : ' Set up PHP'
28
+ uses : ' shivammathur/setup-php@v2'
29
+ with :
30
+ php-version : ' ${{ matrix.php-version }}'
31
+ coverage : ' none'
32
+
33
+ - name : ' Get Composer cache directory'
34
+ id : ' composer-cache'
35
+ run : ' echo "::set-output name=cache-dir::$(composer config cache-files-dir)"'
36
+
37
+ - name : ' Cache dependencies'
38
+ uses : ' actions/cache@v2'
39
+ with :
40
+ path : ' ${{ steps.composer-cache.outputs.cache-dir }}'
41
+ key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
42
+ restore-keys : ' php-${{ matrix.php-version }}-composer-locked-'
43
+
44
+ - name : ' Install dependencies'
45
+ run : ' composer update --no-progress $COMPOSER_OPTIONS'
46
+
47
+ - name : ' Run PhpSpec'
48
+ run : ' vendor/bin/phpspec run'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments