Skip to content

Commit 44d64cd

Browse files
Copilotbenbalter
andcommitted
Add Playwright browser installation to Copilot setup workflow
Ensures E2E tests can be run in the Copilot agent environment by installing Chromium browser during setup. Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
1 parent 00ce70e commit 44d64cd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ jobs:
2929

3030
- name: Install dependencies
3131
run: npm ci
32+
33+
- name: Install Playwright Browsers
34+
run: npx playwright install --with-deps chromium

docs/CLOUDFLARE-CACHE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Example workflow modification:
101101
```
102102

103103
**Trade-offs:**
104+
104105
- **Pros**: Reduces cache purge overhead; preserves cache for unchanged content
105106
- **Cons**: More complex implementation; requires tracking changed files; risk of missing dependent files (e.g., a CSS file used by an HTML page)
106107

@@ -148,6 +149,7 @@ For this use case (static site with content-hashed assets), `purge_everything` p
148149
1. Check workflow logs in GitHub Actions
149150
2. Verify secrets are set correctly
150151
3. Test API manually:
152+
151153
```bash
152154
curl -X POST "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/purge_cache" \
153155
-H "Authorization: Bearer YOUR_API_TOKEN" \

0 commit comments

Comments
 (0)