Skip to content

fix(ci): ensure apt cache is saved for Playwright system deps#223

Merged
steilerDev merged 1 commit into
betafrom
fix/apt-cache-save
Feb 23, 2026
Merged

fix(ci): ensure apt cache is saved for Playwright system deps#223
steilerDev merged 1 commit into
betafrom
fix/apt-cache-save

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Set Keep-Downloaded-Packages "true" so apt retains .deb files after install (Ubuntu runners clean them by default)
  • Use explicit actions/cache/restore@v4 + actions/cache/save@v4 instead of actions/cache@v4 so archives are captured immediately after install, not in a post-job step
  • Only saves on cache miss to avoid redundant uploads

Follow-up fix for #218 where the apt cache step was added but never actually saved anything.

Test plan

  • First CI run: cache miss → Save apt cache step uploads archives
  • Verify apt-playwright-* entry in gh cache list
  • Subsequent CI run: cache hit → Save apt cache skipped → install-deps faster
  • All E2E jobs still pass

🤖 Generated with Claude Code

Two fixes for the apt caching added in #218:

1. Set `Keep-Downloaded-Packages "true"` so apt retains .deb files
   after install (Ubuntu runners clean them by default)
2. Use explicit cache/restore + cache/save instead of actions/cache
   so archives are captured immediately after install, not in a
   post-job step where they may already be cleaned

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit 7313140 into beta Feb 23, 2026
8 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.9.0-beta.59 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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