File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Code Check
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ run :
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os : [ubuntu-latest]
17
+ php : ['7.4']
18
+
19
+ name : PHP ${{ matrix.php }} Test on ${{ matrix.os }}
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v2
23
+
24
+ - name : Setup PHP
25
+ uses : shivammathur/setup-php@v2
26
+ with :
27
+ php-version : ${{ matrix.php }}
28
+ tools : composer
29
+
30
+ - name : Validate composer.json and composer.lock
31
+ run : composer validate
32
+
33
+ - name : Get Composer Cache Directory
34
+ id : composer-cache
35
+ run : |
36
+ echo "::set-output name=dir::$(composer config cache-files-dir)"
37
+
38
+ - name : Cache composer dependencies
39
+ uses : actions/cache@v2
40
+ with :
41
+ path : ${{ steps.composer-cache.outputs.dir }}
42
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
43
+ restore-keys : |
44
+ ${{ runner.os }}-composer-
45
+
46
+ - name : Install dependencies
47
+ run : composer install --prefer-dist --no-progress
48
+
49
+ - name : Code check
50
+ run : composer check
Original file line number Diff line number Diff line change 18
18
"psr-4" : {
19
19
"LambdaPhpSkeleton\\ " : " src/"
20
20
}
21
+ },
22
+ "scripts" : {
23
+ "check" : [
24
+ " @cs-check" ,
25
+ " @phpstan"
26
+ ],
27
+ "cs-check" : " php-cs-fixer fix --config=dev/php-cs-fixer.php_cs --dry-run --diff" ,
28
+ "phpstan" : " phpstan analyse -c dev/phpstan.neon --no-progress"
21
29
}
22
30
}
You can’t perform that action at this time.
0 commit comments