File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 10
10
- name : Checkout the code
11
11
uses : actions/checkout@v2
12
12
13
- - name : Check for code style violation with PHP-CS-Fixer
14
- uses :
OskarStark/[email protected]
13
+ - name : Setup PHP
14
+ uses : shivammathur/setup-php@v2
15
+ with :
16
+ php-version : ' 8.2'
17
+ coverage : none
18
+
19
+ - name : Get Composer cache directory
20
+ id : cache-composer
21
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
22
+
23
+ - name : Restore Composer cache
24
+ uses : actions/cache@v3
15
25
with :
16
- args : --diff --dry-run
26
+ path : ${{ steps.cache-composer.outputs.dir }}
27
+ key : ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}
28
+
29
+ - name : Install Composer dependencies
30
+ run : |
31
+ composer install --no-interaction --prefer-dist
32
+
33
+ - name : Check for code style violation with PHP-CS-Fixer
34
+ run : vendor/bin/php-cs-fixer fix --diff
You can’t perform that action at this time.
0 commit comments