File tree Expand file tree Collapse file tree 2 files changed +48
-13
lines changed Expand file tree Collapse file tree 2 files changed +48
-13
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ${{ matrix.operating-system }}
8
+ strategy :
9
+ matrix :
10
+ operating-system : [ubuntu-latest]
11
+ php-versions : ["7.2", "7.3", "7.4", 8.0"]
12
+ env :
13
+ tools : composer
14
+ name : PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
18
+
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : ${{ matrix.php-versions }}
23
+ tools : ${{ env.tools }}
24
+ env :
25
+ fail-fast : true
26
+
27
+ - name : Setup problem matchers for PHPUnit
28
+ run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
29
+
30
+ - name : Validate composer
31
+ run : composer validate
32
+
33
+ - name : Get composer cache directory
34
+ id : composer-cache
35
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
36
+
37
+ - name : Cache dependencies
38
+ uses : actions/cache@v2
39
+ with :
40
+ path : ${{ steps.composer-cache.outputs.dir }}
41
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
42
+ restore-keys : ${{ runner.os }}-composer-
43
+
44
+ - name : Install dependencies
45
+ run : composer install
46
+
47
+ - name : Run tests
48
+ run : composer test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments