-
Notifications
You must be signed in to change notification settings - Fork 2
fix: add missing Turbo and Playwright cache configurations to CI workflows #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,14 @@ jobs: | |||||||||||||||
| node-version: '20.x' | ||||||||||||||||
| cache: 'pnpm' | ||||||||||||||||
|
|
||||||||||||||||
| - name: Turbo Cache | ||||||||||||||||
| uses: actions/cache@v5 | ||||||||||||||||
| with: | ||||||||||||||||
| path: node_modules/.cache/turbo | ||||||||||||||||
| key: turbo-${{ runner.os }}-${{ github.sha }} | ||||||||||||||||
| restore-keys: | | ||||||||||||||||
| turbo-${{ runner.os }}- | ||||||||||||||||
|
|
||||||||||||||||
| - name: Install dependencies | ||||||||||||||||
| run: pnpm install --frozen-lockfile | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -120,6 +128,14 @@ jobs: | |||||||||||||||
| node-version: '20.x' | ||||||||||||||||
| cache: 'pnpm' | ||||||||||||||||
|
|
||||||||||||||||
| - name: Turbo Cache | ||||||||||||||||
| uses: actions/cache@v5 | ||||||||||||||||
| with: | ||||||||||||||||
| path: node_modules/.cache/turbo | ||||||||||||||||
| key: turbo-${{ runner.os }}-${{ github.sha }} | ||||||||||||||||
| restore-keys: | | ||||||||||||||||
| turbo-${{ runner.os }}- | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
+131
to
+138
|
||||||||||||||||
| - name: Turbo Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: node_modules/.cache/turbo | |
| key: turbo-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-${{ runner.os }}- |
Copilot
AI
Apr 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow relies on jq being available on the runner to extract the Playwright version. Since jq isn’t installed anywhere in the job, this introduces an implicit dependency that can break if the runner image changes. Prefer deriving the version without jq (e.g., via pnpm exec playwright --version or node -p reading @playwright/test/package.json) or explicitly install jq first.
| run: echo "version=$(pnpm list @playwright/test --depth=0 --json | jq -r '.[0].devDependencies["@playwright/test"].version')" >> $GITHUB_OUTPUT | |
| run: echo "version=$(node -p "require(require.resolve('@playwright/test/package.json')).version")" >> $GITHUB_OUTPUT |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -58,9 +58,25 @@ jobs: | |||||
| - name: Build Storybook | ||||||
| run: pnpm storybook:build | ||||||
|
|
||||||
| - name: Get Playwright version | ||||||
| id: playwright-version | ||||||
| run: echo "version=$(pnpm list @playwright/test --depth=0 --json | jq -r '.[0].devDependencies["@playwright/test"].version')" >> $GITHUB_OUTPUT | ||||||
|
||||||
| run: echo "version=$(pnpm list @playwright/test --depth=0 --json | jq -r '.[0].devDependencies["@playwright/test"].version')" >> $GITHUB_OUTPUT | |
| run: echo "version=$(node -p "require('./node_modules/@playwright/test/package.json').version")" >> $GITHUB_OUTPUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The added Turbo cache in the
testjob is currently unused: this job runspnpm test:coverage(Vitest) and never invokesturbo, sonode_modules/.cache/turbowon’t be read/written in a meaningful way. Consider either running tests through Turbo (so build cache can be reused) or removing this cache step to avoid the overhead of a no-op cache restore/save.