Skip to content

Commit 0e6297d

Browse files
szepeviktormnavarrocarter
authored andcommitted
Fix Composer usage in CI
> You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3. > No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
1 parent 5e206e7 commit 0e6297d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
~/.composer/cache
3333
key: "php-${{ matrix.php-version }}-locked"
3434
restore-keys: "php-${{ matrix.php-version }}-locked"
35-
- name: "Install locked dependencies"
36-
run: "composer install --no-interaction --no-progress --no-suggest"
35+
- name: "Install highest dependencies"
36+
run: "composer update --no-interaction --no-progress"
3737
- name: "Coding Standard"
3838
run: "vendor/bin/php-cs-fixer fix -vvv --dry-run --format=checkstyle | cs2pr"
3939

@@ -63,8 +63,8 @@ jobs:
6363
~/.composer/cache
6464
key: "php-${{ matrix.php-version }}-locked"
6565
restore-keys: "php-${{ matrix.php-version }}-locked"
66-
- name: "Install locked dependencies"
67-
run: "composer install --no-interaction --no-progress --no-suggest"
66+
- name: "Install highest dependencies"
67+
run: "composer update --no-interaction --no-progress"
6868
- name: "Run Psalm"
6969
run: "vendor/bin/psalm --output-format=github --shepherd --stats"
7070

@@ -100,12 +100,12 @@ jobs:
100100
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
101101
- name: "Install lowest dependencies"
102102
if: ${{ matrix.dependencies == 'lowest' }}
103-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest --ignore-platform-reqs"
103+
run: "composer update --prefer-lowest --no-interaction --no-progress --ignore-platform-reqs"
104104
- name: "Install highest dependencies"
105105
if: ${{ matrix.dependencies == 'highest' }}
106-
run: "composer update --no-interaction --no-progress --no-suggest --ignore-platform-reqs"
106+
run: "composer update --no-interaction --no-progress --ignore-platform-reqs"
107107
- name: "Install locked dependencies"
108108
if: ${{ matrix.dependencies == 'locked' }}
109-
run: "composer install --no-interaction --no-progress --no-suggest --ignore-platform-reqs"
109+
run: "composer install --no-interaction --no-progress --ignore-platform-reqs"
110110
- name: "Run PHPUnit"
111111
run: "vendor/bin/phpunit --testdox --coverage-text"

0 commit comments

Comments
 (0)