Skip to content

Commit 85ebde7

Browse files
authored
Reduce C3 CI runs (#8167)
* Reduce C3 CI runs * Run on all C3 changes
1 parent 0322d08 commit 85ebde7

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/pr-labeler.config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ e2e:
44
- changed-files:
55
- any-glob-to-any-file: "packages/wrangler/e2e/**/*"
66

7+
c3-e2e:
8+
- all:
9+
- changed-files:
10+
- any-glob-to-any-file: "packages/create-cloudflare/**/*"
11+
712
# add 'skip-pr-description-validation' label to Version Packages PRs
813
skip-pr-description-validation:
914
- all:

.github/workflows/README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,15 @@ See below for a summary of this repo's Actions
114114
### C3 E2E Tests (c3-e2e.yml)
115115

116116
- Triggers
117-
- Commits merged to the `main` branch, on the Cloudflare fork, which touch files in the `packages/create-cloudflare` directory.
118-
- Updates to PRs, on the Cloudflare fork, which touch files in the `packages/create-cloudflare` directory.
117+
- Commits merged to the `changeset-release/main` branch (i.e. on "Version Packages" PRs).
118+
- Updates to PRs, on the Cloudflare fork, with the `c3-e2e` label applied.
119119
- Actions
120120
- Runs the E2E tests for C3.
121121

122122
### C3 E2E (Quarantine) (c3-e2e-quarantine.yml) ⚠️
123123

124124
- Triggers
125-
- Commits merged to the `main` branch, on the Cloudflare fork, which touch files in the `packages/create-cloudflare` directory.
126-
- Updates to PRs, on the Cloudflare fork, which touch files in the `packages/create-cloudflare` directory.
125+
- 3AM every day
127126
- Actions
128127
- Runs the _quarantined_ E2E tests for C3. It is expected to sometimes fail.
129128

.github/workflows/c3-e2e-quarantine.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# Runs c3 e2e tests for quarantined frameworks on merges to main
2-
31
name: C3 E2E (Quarantine)
42
on:
5-
push:
6-
branches:
7-
- main
8-
paths:
9-
- packages/create-cloudflare/**
3+
schedule:
4+
- cron: "0 3 * * *"
5+
workflow_dispatch:
106

117
jobs:
128
e2e:

.github/workflows/c3-e2e.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# Runs c3 e2e tests on pull requests with c3 changes
2-
31
name: C3 E2E Tests
42
on:
3+
push:
4+
branches:
5+
- changeset-release/main
56
pull_request:
7+
types: [synchronize, opened, reopened, labeled, unlabeled]
68

79
jobs:
810
turbo-ignore:
11+
if: (github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'c3-e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare'))
912
outputs:
1013
skip: ${{ steps.skip.outcome }}
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)