Skip to content

Add CLOUDFLARE_AUTH secret for integration tests #87

@trieloff

Description

@trieloff

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

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-auth parameter with value from process.env.CLOUDFLARE_AUTH

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions