diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 2703f6f..6569969 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -5,6 +5,9 @@ on: [push, pull_request] permissions: contents: read +env: + COMPOSER_ROOT_VERSION: dev-main + jobs: build: @@ -13,6 +16,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Validate composer.json and composer.lock + uses: php-actions/composer@v6 + with: + command: validate --strict + - name: Cache Composer packages id: composer-cache uses: actions/cache@v4 @@ -27,10 +35,5 @@ jobs: with: args: --prefer-dist --no-progress - - name: Validate composer.json and composer.lock - uses: php-actions/composer@v6 - with: - command: validate --strict - - name: Run test suite uses: php-actions/phpunit@v4