File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI Tests
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : Validate composer.json and composer.lock
17+ run : composer validate
18+
19+ - name : Get Composer Cache Directory
20+ id : composer-cache
21+ run : |
22+ echo "::set-output name=dir::$(composer config cache-files-dir)"
23+
24+ - name : Install dependencies
25+ run : composer install --prefer-dist --no-progress
26+
27+ - name : Run test suite
28+ run : composer test
29+
30+ - uses : actions/cache@v1
31+ with :
32+ path : ${{ steps.composer-cache.outputs.dir }}
33+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-composer-
You can’t perform that action at this time.
0 commit comments