diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef90e83..7ef664a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,13 @@ jobs: coverage: true steps: + - name: Check out code + uses: actions/checkout@v4 - name: Cache Composer dependencies uses: actions/cache@v4 with: path: ~/.cache/composer/files - key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} - - name: Check out code - uses: actions/checkout@v4 + key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Start database container run: docker compose -f docker-compose.yml -f docker-compose.ci.yml up --wait ${{ matrix.database }} if: matrix.database != 'sqlite' diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 0f25ed3..56f2939 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -12,13 +12,13 @@ jobs: release: [ stable ] steps: + - name: Check out code + uses: actions/checkout@v4 - name: Cache Composer dependencies uses: actions/cache@v4 with: path: ~/.cache/composer/files - key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} - - name: Check out code - uses: actions/checkout@v4 + key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Install dependencies run: | docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm php${{ matrix.php }} \