Skip to content

Commit a8efcfd

Browse files
feat: improve devtools workflow with caching and parallel builds
- Add browser caching for Playwright and Cypress - Add explicit Cypress installation step - Add PLAYWRIGHT_CACHE_HIT environment variable - Add warm Nx cache step - Use --parallel=4 for faster builds - Align with build-and-test workflow strategy 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8c348f8 commit a8efcfd

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/devtools.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,32 @@ jobs:
3131
node-version: '18'
3232
cache: 'pnpm'
3333

34+
- name: Cache Browsers
35+
uses: actions/cache@v3
36+
id: browsers-cache
37+
with:
38+
path: |
39+
~/.cache/ms-playwright
40+
~/.cache/Cypress
41+
key: ${{ runner.os }}-browsers-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
43+
- name: Set Playwright cache status
44+
run: echo "PLAYWRIGHT_CACHE_HIT=${{ steps.browsers-cache.outputs.cache-hit }}" >> $GITHUB_ENV
45+
3446
- name: Set Nx SHA
3547
uses: nrwl/nx-set-shas@v3
3648

3749
- name: Install Dependencies
3850
run: pnpm install
3951

52+
- name: Install Cypress
53+
run: npx cypress install
54+
55+
- name: Warm Nx Cache
56+
run: npx nx run-many --targets=build --projects=tag:type:pkg --parallel=4 --skip-nx-cache
57+
4058
- name: Run Affected Build
41-
run: npx nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache
59+
run: npx nx run-many --targets=build --projects=tag:type:pkg --parallel=4 --skip-nx-cache
4260

4361
- name: Configuration xvfb
4462
shell: bash

0 commit comments

Comments
 (0)