Skip to content

Commit

Permalink
Composer 2 + AMP Plugin 2.1 / AMP PHP Toolbox (#5344)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Feb 18, 2021
1 parent e6b68a8 commit 59800e8
Show file tree
Hide file tree
Showing 13 changed files with 367 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
php-version: '7.4'
coverage: none
tools: composer:v1
tools: composer

- name: Get Composer cache directory
id: composer-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
php-version: '7.4'
coverage: none
tools: composer:v1
tools: composer

- name: Get Composer cache directory
id: composer-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
php-version: '7.4'
coverage: none
tools: composer:v1, cs2pr
tools: composer, cs2pr

- name: Get Composer cache directory
id: composer-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration-unit-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v1
tools: composer

- name: Install prefixed dependencies
run: |
Expand All @@ -80,7 +80,7 @@ jobs:
php-version: ${{ matrix.php }}
extensions: mysql
coverage: xdebug
tools: composer:v1, cs2pr
tools: composer, cs2pr

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion bin/local-env/install-composer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
COMPOSER_VERSION='1.10.17'
COMPOSER_VERSION=$(curl -Ls -w %{url_effective} -o /dev/null https://github.com/composer/composer/releases/latest | rev | cut -d '/' -f 1 | rev)

# Exit if any command fails
set -e
Expand Down
21 changes: 11 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ampproject/amp-wp": "^2.0.10",
"ampproject/amp-toolbox": "^0.1",
"ampproject/amp-wp": "dev-develop",
"civicrm/composer-downloads-plugin": "^3.0",
"cweagans/composer-patches": "^1.6",
"enshrined/svg-sanitize": "^0.14.0",
Expand Down Expand Up @@ -44,19 +45,19 @@
"extra": {
"downloads": {
"composer-normalize": {
"url": "https://github.com/ergebnis/composer-normalize/releases/download/2.9.0/composer-normalize.phar",
"path": "vendor/bin/composer-normalize",
"type": "phar"
},
"phpstan": {
"url": "https://github.com/phpstan/phpstan/releases/download/0.12.52/phpstan.phar",
"path": "vendor/bin/phpstan",
"type": "phar"
"type": "phar",
"url": "https://github.com/ergebnis/composer-normalize/releases/download/2.13.2/composer-normalize.phar"
},
"php-scoper": {
"url": "https://github.com/humbug/php-scoper/releases/download/0.13.5/php-scoper.phar",
"path": "vendor/bin/php-scoper",
"type": "phar"
"type": "phar",
"url": "https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.phar"
},
"phpstan": {
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/download/0.12.77/phpstan.phar"
}
},
"enable-patching": true,
Expand Down
Loading

0 comments on commit 59800e8

Please sign in to comment.