diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d52b89..eb11585 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PHP + id: setup-php uses: shivammathur/setup-php@v2 with: php-version: '8.2' @@ -55,8 +56,20 @@ jobs: restore-keys: | composer-${{ runner.os }}- + - name: Cache vendor directory + id: cache-vendor + uses: actions/cache@v4 + with: + path: vendor + key: vendor-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('**/composer.lock') }} + restore-keys: | + vendor-${{ runner.os }}-${{ steps.setup-php.outputs.php-version }}- + - name: Install Composer dependencies run: composer install --prefer-dist --no-interaction --no-progress + env: + COMPOSER_NO_INTERACTION: 1 + COMPOSER_MEMORY_LIMIT: -1 - name: Prepare SQLite database run: |