Skip to content
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

chore: use main testing account on c3 e2e tests #8268

Merged
merged 3 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/c3-e2e-quarantine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
packageManager: ${{ matrix.pm.name}}
packageManagerVersion: ${{ matrix.pm.version }}
quarantine: true
accountId: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/c3-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ jobs:
packageManagerVersion: ${{ matrix.pm.version }}
quarantine: false
experimental: ${{ matrix.experimental }}
accountId: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/e2e-project-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Cleanup C3 E2E test projects
run: node -r esbuild-register tools/e2e/e2eCleanup.ts
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }}

- name: Cleanup E2E test projects
run: node -r esbuild-register tools/e2e/e2eCleanup.ts
Expand Down
17 changes: 17 additions & 0 deletions packages/create-cloudflare/e2e-tests/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,5 +421,22 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
expect(output).toContain(`lang JavaScript`);
},
);
test({ experimental }).skipIf(process.platform === "win32")(
"--existing-script",
async ({ logStream, project }) => {
const { output } = await runC3(
[
project.path,
"--existing-script=existing-script-test-do-not-delete",
"--git=false",
"--no-deploy",
],
[],
logStream,
);
expect(output).toContain("Pre-existing Worker (from Dashboard)");
expect(output).toContain("Application created successfully!");
},
);
},
);
Loading