diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 7ef1a86..7fa6006 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -64,6 +64,10 @@ jobs: phpcsstandards/phpcsutils:"dev-develop" wp-coding-standards/wpcs:"dev-develop as 3.99" # Alias needed to prevent composer conflict with VIPCS. + - 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 5eef5ee..dbbae04 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -93,6 +93,10 @@ jobs: phpcsstandards/phpcsutils:"${{ env.UTILS_HIGHEST }}" wp-coding-standards/wpcs:"${{ env.WPCS_HIGHEST }}" + - 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 - normal @@ -174,6 +178,10 @@ jobs: phpcsstandards/phpcsutils:"${{ env.UTILS_HIGHEST }}" wp-coding-standards/wpcs:"${{ env.WPCS_HIGHEST }}" + - 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 58ba0da..689d10e 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,8 @@ "config": { "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true - } + }, + "lock": false }, "scripts": { "lint": [