Skip to content

Commit 70ecaec

Browse files
authored
Install deps in validator workflow
1 parent 8bc2150 commit 70ecaec

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/validator.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,30 @@ jobs:
1717
with:
1818
ref: ${{ github.head_ref }}
1919

20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: 8.2
24+
coverage: none
25+
env:
26+
COMPOSER_TOKEN: ${{ secrets.GH_TOKEN_FOR_COMPOSER_FOR_PRIVATE_REPOS }}
27+
28+
- name: Get Composer cache directory
29+
id: composer-cache
30+
run: |
31+
echo "composer_dir={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT
32+
33+
- name: Retrieve Composer‘s cache
34+
uses: actions/cache@v3
35+
with:
36+
path: ${{ steps.composer-cache.outputs.composer_dir }}
37+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-composer-
40+
41+
- name: Install composer dependencies
42+
run: "composer install --no-interaction --no-progress --no-scripts"
43+
2044
- name: Validate ruleset
2145
uses: szepeviktor/[email protected]
2246
with:

0 commit comments

Comments
 (0)