Skip to content

Commit 50a9fbc

Browse files
committed
chore: Update Composer workflow to include dependency updates
Added a step to update Composer dependencies before validation and installation. This ensures the latest packages are fetched and avoids potential conflicts during the workflow run.
1 parent e6e5347 commit 50a9fbc

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/php.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: Update Composer dependencies
17+
run: composer update --no-interaction --no-progress
18+
1619
- name: Validate composer.json and composer.lock
1720
run: composer validate --strict
1821

@@ -26,10 +29,4 @@ jobs:
2629
${{ runner.os }}-php-
2730
2831
- name: Install dependencies
29-
run: composer install --prefer-dist --no-progress
30-
31-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
32-
# Docs: https://getcomposer.org/doc/articles/scripts.md
33-
34-
# - name: Run test suite
35-
# run: composer run-script test
32+
run: composer install --prefer-dist --no-progress

0 commit comments

Comments
 (0)