Skip to content

Commit 6e53ed0

Browse files
authored
Merge pull request #828 from Automattic/feature/composer-no-lock
2 parents fe70595 + 42a49a8 commit 6e53ed0

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/quicktest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
ini-values: error_reporting=E_ALL & ~E_DEPRECATED, display_errors=On
5252
coverage: none
5353

54+
- name: Enable creation of `composer.lock` file
55+
if: ${{ matrix.dependencies == 'lowest' }}
56+
run: composer config --unset lock
57+
5458
# Install dependencies and handle caching in one go.
5559
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
5660
- name: Install Composer dependencies

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ jobs:
123123
sirbrillig/phpcs-variable-analysis:"2.x"
124124
wp-coding-standards/wpcs:"dev-develop"
125125
126+
- name: Enable creation of `composer.lock` file
127+
if: ${{ matrix.dependencies == 'lowest' }}
128+
run: composer config --unset lock
129+
126130
# Install dependencies and handle caching in one go.
127131
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
128132
- name: Install Composer dependencies

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"config": {
3434
"allow-plugins": {
3535
"dealerdirect/phpcodesniffer-composer-installer": true
36-
}
36+
},
37+
"lock": false
3738
},
3839
"scripts": {
3940
"test-ruleset": "bin/ruleset-tests",

0 commit comments

Comments
 (0)