Skip to content

Component improvements#28

Merged
javihgil merged 5 commits into6.0from
component-improvements
Mar 27, 2026
Merged

Component improvements#28
javihgil merged 5 commits into6.0from
component-improvements

Conversation

@javihgil
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 27, 2026 12:08
@javihgil javihgil merged commit 189df78 into 6.0 Mar 27, 2026
0 of 2 checks passed
@javihgil javihgil deleted the component-improvements branch March 27, 2026 12:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions CI workflow to improve Composer dependency handling by caching Composer’s download cache (instead of vendor) and making dependency resolution more stable across runs.

Changes:

  • Add a step to detect and cache the Composer cache directory via composer config cache-files-dir.
  • Update the Composer cache key/restore key strategy to incorporate matrix dimensions.
  • Add --prefer-stable to the Composer update command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ matrix.composer-prefer }}-${{ hashFiles('composer.json') }}
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Composer cache key is based on hashFiles('composer.json') only. When dependency versions change via composer.lock (including indirect updates), the key can still hit, and Actions Cache will not save newly downloaded packages on a cache hit—reducing cache effectiveness after lockfile changes. Consider including composer.lock (or both composer.json + composer.lock) in the key hash so cache entries rotate when resolved versions change.

Suggested change
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ matrix.composer-prefer }}-${{ hashFiles('composer.json') }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ matrix.composer-prefer }}-${{ hashFiles('composer.json', 'composer.lock') }}

Copilot uses AI. Check for mistakes.
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.

2 participants