File tree Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Original file line number Diff line number Diff line change 1+ name : linter
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ main ]
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ linter :
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ php-versions : [ '7.2' ]
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ name : Checkout
21+
22+ - uses : eWaterCycle/setup-grpc@v5
23+ name : Setup gRPC
24+ with :
25+ grpc-version : 1.51.1
26+
27+ - uses : shivammathur/setup-php@v2
28+ name : Setup PHP
29+ id : php
30+ with :
31+ extensions : grpc
32+ php-version : ${{ matrix.php-versions }}
33+
34+ - run : composer validate --strict
35+ name : Validate composer.json and composer.lock
36+
37+ - uses : actions/cache@v3
38+ name : Cache Composer packages
39+ id : composer-cache
40+
41+ with :
42+ path : vendor
43+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
44+ restore-keys : |
45+ ${{ runner.os }}-php-
46+ - name : Install dependencies
47+ run : composer install --prefer-dist --no-progress
48+
49+ - name : Run tests
50+ run : ./vendor/bin/phplint \
51+ ./ --exclude=vendor
Original file line number Diff line number Diff line change 2020 "psr/log" : " ^1|^2|^3"
2121 },
2222 "require-dev" : {
23- "phpunit/phpunit" : " >= 6.0, <10.0"
23+ "phpunit/phpunit" : " >= 6.0, <10.0" ,
24+ "overtrue/phplint" : " ^3.0"
2425 },
2526 "autoload" : {
2627 "psr-4" : {
You can’t perform that action at this time.
0 commit comments