Skip to content

Commit

Permalink
Composer: avoid writing a lock file (#2443)
Browse files Browse the repository at this point in the history
* Composer: avoid writing a lock file

* Allow creation of composer.lock during some tests
  • Loading branch information
fredden committed Apr 25, 2024
1 parent 293afbe commit 29488fe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/basic-qa.yml
Expand Up @@ -137,6 +137,10 @@ jobs:
phpcsstandards/phpcsutils:"${{ env.UTILS_DEV }}"
phpcsstandards/phpcsextra:"${{ env.EXTRA_DEV }}"
- name: Enable creation of `composer.lock` file
if: ${{ matrix.dependencies == 'lowest' }}
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/quicktest.yml
Expand Up @@ -41,6 +41,10 @@ jobs:
ini-values: error_reporting=-1, display_errors=On
coverage: ${{ github.ref_name == 'develop' && 'xdebug' || 'none' }}

- name: Enable creation of `composer.lock` file
if: ${{ matrix.dependencies == 'lowest' }}
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests.yml
Expand Up @@ -112,6 +112,10 @@ jobs:
phpcsstandards/phpcsutils:"${{ env.UTILS_DEV }}"
phpcsstandards/phpcsextra:"${{ env.EXTRA_DEV }}"
- name: Enable creation of `composer.lock` file
if: ${{ matrix.dependencies == 'lowest' }}
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -39,7 +39,8 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"lock": false
},
"scripts": {
"lint": [
Expand Down

0 comments on commit 29488fe

Please sign in to comment.