-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
The Cloudflare integration tests are currently skipped because there are no Cloudflare API credentials configured in the CI environment.
What's Needed
Add a repository secret named CLOUDFLARE_AUTH containing a Cloudflare API token from https://dash.cloudflare.com/profile/api-tokens
Tests Affected
test/cloudflare.integration.js- Deploy a pure action to Cloudflare (currently skipped)test/cache-demo.integration.js- Deploy cache-demo to Cloudflare (currently failing in feat: export CacheOverride API for cross-platform cache control #83)
CI Configuration
Once the secret is added, update .github/workflows/main.yaml line 35 to include:
- run: npm run integration-ci
env:
HLX_FASTLY_AUTH: ${{ secrets.HLX_FASTLY_AUTH }}
CLOUDFLARE_AUTH: ${{ secrets.CLOUDFLARE_AUTH }}Then update the tests to use the environment variable:
- Add
--cloudflare-authparameter with value fromprocess.env.CLOUDFLARE_AUTH
References
- Related to Export CacheOverride API for cross-platform cache control #82 (CacheOverride API implementation)
- Blocking PR feat: export CacheOverride API for cross-platform cache control #83 from testing Cloudflare deployment
Metadata
Metadata
Assignees
Labels
No labels