Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Changelog", this file is a reverse-chronological list of merged pull requests.

## Open PR's

- [PR-146](https://github.com/itk-dev/devops_itkdev-docker/pull/146) - 2026-07-08 -
Cache Composer dependencies (`vendor`) in the Composer, Twig and PHP workflow
templates to speed up installs and avoid package registry rate limits. The
cache key hashes both `composer.lock` and `docker-compose.yml` so a PHP image
bump invalidates the cache
- [PR-145](https://github.com/itk-dev/devops_itkdev-docker/pull/145) - 2026-07-08 -
Updated GitHub Actions to latest versions (`actions/checkout` to `v7`,
`go-task/setup-task` to `v2`) in workflow templates and repository CI
Expand Down
7 changes: 7 additions & 0 deletions github/workflows/composer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
run: |
docker network create frontend

- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-${{ hashFiles('composer.lock', 'docker-compose.yml') }}
restore-keys: composer-

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm composer normalize --dry-run
Expand Down
7 changes: 7 additions & 0 deletions github/workflows/drupal-module/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
run: |
docker network create frontend

- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-${{ hashFiles('composer.lock', 'docker-compose.yml') }}
restore-keys: composer-

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/phpcs
7 changes: 7 additions & 0 deletions github/workflows/drupal/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
run: |
docker network create frontend

- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-${{ hashFiles('composer.lock', 'docker-compose.yml') }}
restore-keys: composer-

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/phpcs
7 changes: 7 additions & 0 deletions github/workflows/symfony/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
run: |
docker network create frontend

- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-${{ hashFiles('composer.lock', 'docker-compose.yml') }}
restore-keys: composer-

- run: |
docker compose run --rm phpfpm composer install
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#the-check-command
Expand Down
7 changes: 7 additions & 0 deletions github/workflows/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
run: |
docker network create frontend

- name: Cache Composer dependencies
uses: actions/cache@v6
with:
path: vendor
key: composer-${{ hashFiles('composer.lock', 'docker-compose.yml') }}
restore-keys: composer-

- run: |
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint