Skip to content

Commit

Permalink
Validate composer.json with composer@v6
Browse files Browse the repository at this point in the history
  • Loading branch information
alphp committed Jul 21, 2024
1 parent 084c173 commit 1099338
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- uses: php-actions/composer@v6

- name: Validate composer.json and composer.lock
run: composer validate --strict
uses: php-actions/composer@v6
with:
command: validate --strict

- name: Cache Composer packages
id: composer-cache
Expand All @@ -26,11 +28,6 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
uses: php-actions/composer@v6
with:
command: install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

Expand Down

0 comments on commit 1099338

Please sign in to comment.