Skip to content

ci: cache Composer dependencies in workflow templates#146

Open
turegjorup wants to merge 1 commit into
developfrom
feature/gha-cache-composer-deps
Open

ci: cache Composer dependencies in workflow templates#146
turegjorup wants to merge 1 commit into
developfrom
feature/gha-cache-composer-deps

Conversation

@turegjorup

Copy link
Copy Markdown
Contributor

Add actions/cache for the vendor directory to the workflow templates that run composer install purely to obtain dependencies for a check.

Changes

  • Cache vendor (keyed on composer.lock, with a composer- restore fallback) in:
    • github/workflows/composer.yaml (normalize job)
    • github/workflows/twig.yaml
    • github/workflows/drupal/php.yaml
    • github/workflows/drupal-module/php.yaml
    • github/workflows/symfony/php.yaml

Why

On a cache hit composer install reuses the restored vendor instead of re-downloading every dependency, cutting job time and reducing the risk of hitting package registry rate limits. Mirrors the Composer caching added in itk-dev/event-database-imports#98. The validate/audit jobs are untouched since they do not install dependencies.

@turegjorup turegjorup force-pushed the feature/gha-cache-composer-deps branch from 2b84bde to 5f9e654 Compare July 8, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant