Skip to content

Commit 4f910cf

Browse files
authored
Always use labels for E2E (#8194)
1 parent 693d63e commit 4f910cf

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.github/pr-labeler.config.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# add 'e2e' label to any changes within the 'packages/wrangler/e2e' directory
21
e2e:
3-
- all:
2+
- any:
43
- changed-files:
54
- any-glob-to-any-file: "packages/wrangler/e2e/**/*"
5+
- head-branch: "changeset-release/main"
66

77
c3-e2e:
8-
- all:
8+
- any:
99
- changed-files:
1010
- any-glob-to-any-file: "packages/create-cloudflare/**/*"
11-
12-
# add 'skip-pr-description-validation' label to Version Packages PRs
13-
skip-pr-description-validation:
14-
- all:
1511
- head-branch: "changeset-release/main"

.github/workflows/c3-e2e.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: C3 E2E Tests
22
on:
3-
push:
4-
branches:
5-
- changeset-release/main
63
pull_request:
74
types: [synchronize, opened, reopened, labeled, unlabeled]
85

96
jobs:
107
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'))
8+
if: contains(github.event.*.labels.*.name, 'c3-e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare'
129
outputs:
1310
skip: ${{ steps.skip.outcome }}
1411
runs-on: ubuntu-latest

.github/workflows/e2e.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: E2E tests
22

33
on:
4-
push:
5-
branches:
6-
- changeset-release/main
74
pull_request:
85
types: [synchronize, opened, reopened, labeled, unlabeled]
96
repository_dispatch:
@@ -14,7 +11,7 @@ jobs:
1411
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.node }}
1512
cancel-in-progress: true
1613
timeout-minutes: 40
17-
if: (github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare'))
14+
if: github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare'
1815
name: "E2E Test"
1916
strategy:
2017
fail-fast: false

0 commit comments

Comments
 (0)