diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index fff3cfa4..5aeae65b 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -51,6 +51,10 @@ jobs: ini-values: error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On coverage: none + - name: Enable creation of `composer.lock` file + if: ${{ matrix.dependencies == 'lowest' }} + run: composer config --unset lock + # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c7d784e..99609523 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -123,6 +123,10 @@ jobs: sirbrillig/phpcs-variable-analysis:"2.x" wp-coding-standards/wpcs:"dev-develop" + - name: Enable creation of `composer.lock` file + if: ${{ matrix.dependencies == 'lowest' }} + run: composer config --unset lock + # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies diff --git a/composer.json b/composer.json index c65c23bb..e02138dc 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,8 @@ "config": { "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true - } + }, + "lock": false }, "scripts": { "test-ruleset": "bin/ruleset-tests",