Skip to content

Commit faebf3c

Browse files
authored
Add label to run on multiple OSs (#8875)
* Add label to run on multiple OSs * add label trigger
1 parent 8e87754 commit faebf3c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/c3-e2e.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
e2e-vp:
88
# Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one
99
#  in .github/workflows/c3-e2e-dependabot.yml
10-
if: github.head_ref == 'changeset-release/main'
10+
if: github.head_ref == 'changeset-release/main' || contains(github.event.*.labels.*.name, 'every-os' )
1111
timeout-minutes: 45
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }}
@@ -72,6 +72,7 @@ jobs:
7272
e2e:
7373
# Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one
7474
#  in .github/workflows/c3-e2e-dependabot.yml
75+
if: contains(github.event.*.labels.*.name, 'c3-e2e' )
7576
timeout-minutes: 45
7677
concurrency:
7778
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }}

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.node }}
1212
cancel-in-progress: true
1313
timeout-minutes: 40
14-
if: github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare' && github.head_ref == 'changeset-release/main'
14+
if: github.event_name == 'pull_request' && contains(github.event.*.labels.*.name, 'e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare' && (github.head_ref == 'changeset-release/main' || contains(github.event.*.labels.*.name, 'every-os' ))
1515
name: "E2E Test"
1616
strategy:
1717
fail-fast: false

.github/workflows/test-and-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled]
56

67
jobs:
78
add-to-project:
@@ -16,7 +17,7 @@ jobs:
1617
- run: curl -X POST https://devprod-status-bot.devprod.workers.dev/pr-project/workers-sdk/${{ github.event.number }}
1718

1819
check-vp:
19-
if: github.head_ref == 'changeset-release/main'
20+
if: github.head_ref == 'changeset-release/main' || contains(github.event.*.labels.*.name, 'every-os' )
2021
timeout-minutes: 30
2122
concurrency:
2223
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-checks
@@ -99,7 +100,7 @@ jobs:
99100
path: .turbo/runs
100101

101102
test-vp:
102-
if: github.head_ref == 'changeset-release/main'
103+
if: github.head_ref == 'changeset-release/main' || contains(github.event.*.labels.*.name, 'every-os' )
103104
timeout-minutes: 30
104105
concurrency:
105106
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.filter }}-${{ matrix.node_version }}-test

0 commit comments

Comments
 (0)