diff --git a/.github/settings.yml b/.github/settings.yml index aebfa4c2..99408fa5 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -20,18 +20,31 @@ branches: - "Dependency Analysis (7.4, locked)" - "Label" - "Static Code Analysis (7.4, locked)" - - "Tests (7.1, highest)" - - "Tests (7.1, locked)" - - "Tests (7.1, lowest)" - - "Tests (7.2, highest)" - - "Tests (7.2, locked)" - - "Tests (7.2, lowest)" - - "Tests (7.3, highest)" - - "Tests (7.3, locked)" - - "Tests (7.3, lowest)" - - "Tests (7.4, highest)" - - "Tests (7.4, locked)" - - "Tests (7.4, lowest)" + - "Static Code Analysis (7.4, locked)" + - "Tests (7.1, 1, highest)" + - "Tests (7.1, 1, locked)" + - "Tests (7.1, 1, lowest)" + - "Tests (7.1, 2, highest)" + - "Tests (7.1, 2, locked)" + - "Tests (7.1, 2, lowest)" + - "Tests (7.2, 1, highest)" + - "Tests (7.2, 1, locked)" + - "Tests (7.2, 1, lowest)" + - "Tests (7.2, 2, highest)" + - "Tests (7.2, 2, locked)" + - "Tests (7.2, 2, lowest)" + - "Tests (7.3, 1, highest)" + - "Tests (7.3, 1, locked)" + - "Tests (7.3, 1, lowest)" + - "Tests (7.3, 2, highest)" + - "Tests (7.3, 2, locked)" + - "Tests (7.3, 2, lowest)" + - "Tests (7.4, 1, highest)" + - "Tests (7.4, 1, locked)" + - "Tests (7.4, 1, lowest)" + - "Tests (7.4, 2, highest)" + - "Tests (7.4, 2, locked)" + - "Tests (7.4, 2, lowest)" strict: false restrictions: diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 818e6f90..25351123 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -226,6 +226,10 @@ jobs: - "7.3" - "7.4" + composer-version: + - "1" + - "2" + dependencies: - "lowest" - "locked" @@ -242,6 +246,14 @@ jobs: extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" + - 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: "Determine composer cache directory" id: "determine-composer-cache-directory" run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" diff --git a/composer.json b/composer.json index cd1ad19e..9e7e9c14 100644 --- a/composer.json +++ b/composer.json @@ -18,13 +18,14 @@ ], "require": { "php": "^7.1", - "composer-plugin-api": "^1.1.0", + "composer-plugin-api": "^1.1.0 || ^2.0.0", "ergebnis/json-normalizer": "~0.12.0", "ergebnis/json-printer": "^3.0.2", "localheinz/diff": "^1.0.1" }, "require-dev": { "composer/composer": "^1.10.5", + "composer/package-versions-deprecated": "^1.8.0", "ergebnis/license": "~0.1.0", "ergebnis/php-cs-fixer-config": "^2.1.2", "ergebnis/phpstan-rules": "~0.14.4", diff --git a/composer.lock b/composer.lock index 8b622e9e..c44eebc2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cc02c73a0993b62137289efdda877abf", + "content-hash": "e56dec9d617c37383b9200979273b981", "packages": [ { "name": "ergebnis/json-normalizer", @@ -4628,7 +4628,7 @@ "prefer-lowest": false, "platform": { "php": "^7.1", - "composer-plugin-api": "^1.1.0" + "composer-plugin-api": "^1.1.0 || ^2.0.0" }, "platform-dev": [], "platform-overrides": { diff --git a/src/NormalizePlugin.php b/src/NormalizePlugin.php index 02ffd334..fe4f0fbe 100644 --- a/src/NormalizePlugin.php +++ b/src/NormalizePlugin.php @@ -27,6 +27,14 @@ public function activate(Composer $composer, IO\IOInterface $io): void { } + public function deactivate(Composer $composer, IO\IOInterface $io): void + { + } + + public function uninstall(Composer $composer, IO\IOInterface $io): void + { + } + public function getCapabilities(): array { return [