Skip to content

Commit 47b4032

Browse files
committed
Fix cache on one of the non-test steps
1 parent 594e516 commit 47b4032

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ jobs:
4343
PATTERNS: |
4444
pkg/**/*.php
4545
46+
- name: Get Composer Cache Directory
47+
id: composer-cache
48+
run: |
49+
echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+
- uses: actions/cache@v2
52+
with:
53+
path: ${{ steps.composer-cache.outputs.dir }}
54+
key: composer-cs-check-${{ hashFiles('**/composer.json') }}
55+
restore-keys: |
56+
composer-cs-check-
57+
4658
- uses: shivammathur/setup-php@v2
4759
with:
4860
php-version: '7.4'
@@ -52,7 +64,7 @@ jobs:
5264

5365
- run: php ./bin/fix-symfony-version.php "5.2.*"
5466

55-
- uses: "ramsey/composer-install@v1"
67+
- run: composer update --no-progress
5668

5769
- run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
5870

0 commit comments

Comments
 (0)