File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -161,15 +161,8 @@ jobs:
161
161
- name : " Create cache directory for vimeo/psalm"
162
162
run : " mkdir -p .build/psalm"
163
163
164
- - name : " Cache cache directory for vimeo/psalm"
165
- uses : " actions/cache@v2.1.7"
166
- with :
167
- path : " .build/psalm"
168
- key : " php-${{ matrix.php-version }}-psalm-${{ github.sha }}"
169
- restore-keys : " php-${{ matrix.php-version }}-psalm-"
170
-
171
164
- name : " Run vimeo/psalm"
172
- run : " vendor/bin/psalm --config=psalm.xml --diff -- shepherd --show-info=false --stats --threads=4"
165
+ run : " vendor/bin/psalm --config=psalm.xml --shepherd --show-info=false --stats --threads=4"
173
166
174
167
tests :
175
168
name : " Tests"
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan
21
21
mkdir -p .build/phpstan
22
22
vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1
23
23
mkdir -p .build/psalm
24
- vendor/bin/psalm --config=psalm.xml --diff --show-info=false --stats --threads=4
24
+ vendor/bin/psalm --config=psalm.xml --clear-cache
25
+ vendor/bin/psalm --config=psalm.xml --show-info=false --stats --threads=4
25
26
26
27
.PHONY : static-code-analysis-baseline
27
28
static-code-analysis-baseline : vendor # # Generates a baseline for static code analysis with phpstan/phpstan and vimeo/psalm
28
29
mkdir -p .build/phpstan
29
30
echo ' ' > phpstan-baseline.neon
30
31
vendor/bin/phpstan analyze --configuration=phpstan.neon --error-format=baselineNeon --memory-limit=-1 > phpstan-baseline.neon || true
31
32
mkdir -p .build/psalm
33
+ vendor/bin/psalm --config=psalm.xml --clear-cache
32
34
vendor/bin/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml
33
35
34
36
.PHONY : tests
You can’t perform that action at this time.
0 commit comments