From 63ff3b655399ff8a62f601388c92fff6229cf2c8 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sun, 31 Jul 2022 17:58:22 +0100 Subject: [PATCH 1/4] run tests against php81 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 008824f..11a87a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] + php: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"] steps: - name: Checkout From 8af19c880f036f428b62317e23b09e6e07a8bbf7 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sun, 31 Jul 2022 18:01:45 +0100 Subject: [PATCH 2/4] fix build by allowing the yii2-composer plugin --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11a87a0..22385b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,9 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - name: Install dependencies - run: composer update $DEFAULT_COMPOSER_FLAGS + run: | + composer config --no-plugins allow-plugins.yiisoft/yii2-composer true + composer update $DEFAULT_COMPOSER_FLAGS - name: Run unit tests with coverage run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always if: matrix.php == '7.4' From de224699549b12f0afa0423301bb0621038b6d34 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sun, 31 Jul 2022 18:04:27 +0100 Subject: [PATCH 3/4] Revert php81, incompatible with our version of phpunit --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22385b6..6e87544 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"] + php: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0"] steps: - name: Checkout From 2bf6b6dd2c635d2295e829e5f0a3180a40d4728b Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Mon, 1 Aug 2022 08:30:41 +0100 Subject: [PATCH 4/4] allow plugin in composer.json --- .github/workflows/build.yml | 4 +--- composer.json | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e87544..0657d26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,9 +32,7 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - name: Install dependencies - run: | - composer config --no-plugins allow-plugins.yiisoft/yii2-composer true - composer update $DEFAULT_COMPOSER_FLAGS + run: composer update $DEFAULT_COMPOSER_FLAGS - name: Run unit tests with coverage run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always if: matrix.php == '7.4' diff --git a/composer.json b/composer.json index 2c0251a..3e666fe 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,11 @@ "suggest": { "twbs/bootstrap-icons": "Add this package to the `require` section of your `composer.json` if you'd like to use the bootstrap icon asset." }, + "config": { + "allow-plugins": { + "yiisoft/yii2-composer": true + } + }, "repositories": [ { "type": "composer",