File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 72
72
tools : composer:v2
73
73
coverage : none
74
74
75
+ - name : Cache dependencies
76
+ id : composer-cache
77
+ uses : actions/cache@v3
78
+ with :
79
+ path : ./vendor
80
+ key : composer-${{ hashFiles('**/composer.lock') }}
81
+
75
82
- name : Install dependencies
76
83
run : composer install
77
84
85
+ - name : Restore cache PHPStan results
86
+ id : phpstan-cache-restore
87
+ uses : actions/cache/restore@v3
88
+ with :
89
+ path : .cache
90
+ key : " phpstan-result-cache-${{ github.run_id }}"
91
+ restore-keys : |
92
+ phpstan-result-cache-
93
+
78
94
- name : Run PHPStan
79
95
run : ./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi
96
+
97
+ - name : Save cache PHPStan results
98
+ id : phpstan-cache-save
99
+ if : always()
100
+ uses : actions/cache/save@v3
101
+ with :
102
+ path : .cache
103
+ key : ${{ steps.phpstan-cache-restore.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments