File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [ develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ lint :
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 : Cache Composer packages
20+ id : composer-cache
21+ uses : actions/cache@v2
22+ with :
23+ path : vendor
24+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
25+ restore-keys : |
26+ ${{ runner.os }}-php-
27+
28+ - name : Install dependencies
29+ if : steps.composer-cache.outputs.cache-hit != 'true'
30+ run : composer install --prefer-dist --no-progress --no-suggest
31+
32+ - name : Run PHPUnit
33+ run : composer run test
34+
35+ - name : Run PHPStan
36+ run : composer run lint
You can’t perform that action at this time.
0 commit comments