Skip to content

Commit 76f25e9

Browse files
committed
minor #1197 [CI] Use ramsey/composer-install (rosier)
This PR was merged into the main branch. Discussion ---------- [CI] Use ramsey/composer-install ~~Running `composer update` changes composer.lock~~ Use ramsey/composer-install to cache and install the composer dependencies Commits ------- 8487e5b Use composer install
2 parents 2121f80 + 8487e5b commit 76f25e9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/lint.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ jobs:
4545
uses: actions/cache@v2.1.2
4646
with:
4747
path: ${{ steps.composer-cache.outputs.dir }}
48-
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.json') }}
48+
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}
4949
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer-
5050

51-
- name: "Require symfony/flex"
52-
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-main
53-
54-
- name: "Composer update"
51+
- name: "Composer install"
5552
id: install
56-
run: composer update --no-scripts
53+
run: composer install --no-interaction --no-progress --no-scripts
5754

5855
- name: Lint YAML files
5956
if: always() && steps.install.outcome == 'success'

0 commit comments

Comments
 (0)