Skip to content

Commit f78806e

Browse files
committed
Remove composer.lock file in CI runner
1 parent 822ee8f commit f78806e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
3131

32+
- name: Mark repo safe for git
33+
run: git config --global --add safe.directory /github/workspace
34+
3235
- name: Setup PHP
3336
uses: shivammathur/setup-php@v2
3437
with:
@@ -42,6 +45,9 @@ jobs:
4245
path: /tmp/composer-cache
4346
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
4447

48+
- name: Delete composer.lock (library mode)
49+
run: rm -f composer.lock
50+
4551
- name: Install Composer dependencies
4652
uses: php-actions/composer@v6
4753
with:

0 commit comments

Comments
 (0)