Skip to content

Commit f1c3f21

Browse files
committed
Switching to composer v2 in CI
1 parent 140b255 commit f1c3f21

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
coverage: "pcov"
3535
php-version: "${{ matrix.php-version }}"
36+
tools: composer:v2
3637

3738
- name: "Cache dependencies installed with composer"
3839
uses: "actions/cache@v1"
@@ -41,9 +42,6 @@ jobs:
4142
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
4243
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
4344

44-
- name: "Install composer v1"
45-
run: "composer selfupdate --1"
46-
4745
- name: "Install dependencies with composer"
4846
run: "composer install --no-interaction"
4947

@@ -52,10 +50,10 @@ jobs:
5250

5351
- name: "Run static code analysis with phpstan/phpstan"
5452
run: "composer phpstan"
55-
53+
5654
- name: "Run coding standard checks with squizlabs/php_codesniffer"
5755
run: "composer cs-check"
58-
56+
5957
- name: "Archive code coverage results"
6058
uses: "actions/upload-artifact@v1"
6159
with:

0 commit comments

Comments
 (0)