File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches : [ master ]
5+ pull_request :
6+ branches : [ master ]
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+
12+ - uses : actions/checkout@v2
13+
14+ - name : Cache Composer dependencies
15+ uses : actions/cache@v2
16+ with :
17+ path : /tmp/composer-cache
18+ key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
19+
20+ - uses : php-actions/composer@v6
21+ with :
22+ php_version : 7.1
23+ php_extensions : zip
24+ version : 2
25+
26+ - name : Validate composer.json & composer.lock
27+ uses : php-actions/composer@v6
28+ with :
29+ php_version : 7.1
30+ php_extensions : zip
31+ version : 2
32+ command : validate --strict
33+
34+ - name : Run Code Style Check
35+ uses : php-actions/composer@v6
36+ with :
37+ php_version : 7.1
38+ php_extensions : zip
39+ version : 2
40+ dev : yes
41+ command : style-check
42+
43+ - name : Run Tests
44+ uses : php-actions/composer@v6
45+ with :
46+ php_version : 7.1
47+ php_extensions : zip
48+ dev : yes
49+ command : test
50+
51+
52+
You can’t perform that action at this time.
0 commit comments