-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Bring back support for composer/composer:^1
- Loading branch information
1 parent
111fc79
commit 6945f9b
Showing
6 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,11 +202,28 @@ jobs: | |
- "7.4" | ||
- "8.0" | ||
|
||
composer-version: | ||
- "1" | ||
- "2" | ||
|
||
dependencies: | ||
- "lowest" | ||
- "locked" | ||
- "highest" | ||
|
||
include: | ||
- php-version: "8.0" | ||
composer-version: "2" | ||
dependencies: "lowest" | ||
|
||
- php-version: "8.0" | ||
composer-version: "2" | ||
dependencies: "locked" | ||
|
||
- php-version: "8.0" | ||
composer-version: "2" | ||
dependencies: "highest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
@@ -222,6 +239,17 @@ jobs: | |
- name: "Set up problem matchers for phpunit/phpunit" | ||
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | ||
|
||
- name: "Install composer:^1" | ||
if: "matrix.composer-version == '1'" | ||
run: "composer self-update ${{ env.COMPOSER_VERSION }}" | ||
|
||
- name: "Install composer:^2" | ||
if: "matrix.composer-version == '2'" | ||
run: "composer self-update --snapshot" | ||
|
||
- name: "Show composer version" | ||
run: "composer --version" | ||
|
||
- name: "Determine composer cache directory" | ||
uses: "./.github/actions/composer/composer/determine-cache-directory" | ||
|
||
|
@@ -340,6 +368,9 @@ jobs: | |
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
|
||
- name: "Remove composer/composer" | ||
run: "composer remove composer/composer --no-interaction --no-progress" | ||
|
||
- name: "Require composer/composer" | ||
run: "composer require composer/composer:${{ env.COMPOSER_VERSION }} --no-interaction --no-progress" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.