Skip to content

Commit b421bf6

Browse files
don't run e2e tests if the only change is markdown (#10753)
1 parent 2781330 commit b421bf6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/e2e.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838

39+
- uses: dorny/paths-filter@v3
40+
id: changes
41+
with:
42+
filters: |
43+
everything_but_markdown:
44+
- '!**/*.md'
45+
3946
- name: Install Dependencies
47+
if: steps.changes.outputs.everything_but_markdown == 'true'
4048
uses: ./.github/actions/install-dependencies
4149
with:
4250
node-version: ${{ matrix.node }}
@@ -46,11 +54,13 @@ jobs:
4654
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
4755

4856
- name: Bump package versions
57+
if: steps.changes.outputs.everything_but_markdown == 'true'
4958
run: node .github/changeset-version.js
5059
env:
5160
GITHUB_TOKEN: ${{ github.token }}
5261

5362
- name: Run Wrangler E2E tests
63+
if: steps.changes.outputs.everything_but_markdown == 'true'
5464
run: pnpm run test:e2e:wrangler
5565
env:
5666
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
@@ -62,6 +72,7 @@ jobs:
6272
CI_OS: ${{ matrix.os }}
6373

6474
- name: Run getPlatformProxy() remote-bindings e2e tests
75+
if: steps.changes.outputs.everything_but_markdown == 'true'
6576
run: pnpm run test:e2e -F @fixture/get-platform-proxy-remote-bindings
6677
env:
6778
TEST_CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
@@ -103,8 +114,15 @@ jobs:
103114
with:
104115
fetch-depth: 0
105116

117+
- uses: dorny/paths-filter@v3
118+
id: changes
119+
with:
120+
filters: |
121+
everything_but_markdown:
122+
- '!**/*.md'
123+
106124
- name: Install Dependencies
107-
if: github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group'
125+
if: (github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group') && steps.changes.outputs.everything_but_markdown == 'true'
108126
uses: ./.github/actions/install-dependencies
109127
with:
110128
node-version: ${{ matrix.node }}
@@ -114,13 +132,13 @@ jobs:
114132
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
115133

116134
- name: Bump package versions
117-
if: github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group'
135+
if: (github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group') && steps.changes.outputs.everything_but_markdown == 'true'
118136
run: node .github/changeset-version.js
119137
env:
120138
GITHUB_TOKEN: ${{ github.token }}
121139

122140
- name: Run Vite E2E tests
123-
if: github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group'
141+
if: (github.event.pull_request.head.repo.owner.login == 'cloudflare' || github.event_name == 'merge_group') && steps.changes.outputs.everything_but_markdown == 'true'
124142
run: pnpm test:e2e -F @cloudflare/vite-plugin --log-order=stream
125143
timeout-minutes: 15
126144
env:

0 commit comments

Comments
 (0)