Skip to content

Commit 2a9696e

Browse files
committed
Skip e2e when only changing workflows
1 parent 4b7bca3 commit 2a9696e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/build.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ jobs:
283283
- name: Checkout repo
284284
uses: actions/checkout@v4
285285

286+
- name: Get changed files
287+
id: changed-files
288+
uses: tj-actions/changed-files@v45
289+
with:
290+
files: "**"
291+
files_ignore: |
292+
.github/**
293+
286294
- name: Install system dependencies
287295
run: sudo apt update && sudo apt install -y libkrb5-dev
288296

@@ -311,7 +319,8 @@ jobs:
311319
./test/node_modules/.bin/playwright install-deps
312320
./test/node_modules/.bin/playwright install
313321
314-
- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e
322+
- if: steps.changed-files.outputs.any_changed == 'true'
323+
run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e
315324

316325
- name: Upload test artifacts
317326
if: always()
@@ -332,6 +341,14 @@ jobs:
332341
- name: Checkout repo
333342
uses: actions/checkout@v4
334343

344+
- name: Get changed files
345+
id: changed-files
346+
uses: tj-actions/changed-files@v45
347+
with:
348+
files: "**"
349+
files_ignore: |
350+
.github/**
351+
335352
- name: Install system dependencies
336353
run: sudo apt update && sudo apt install -y libkrb5-dev
337354

@@ -379,7 +396,8 @@ jobs:
379396
380397
- run: ~/.cache/caddy/caddy start --config ./ci/Caddyfile
381398

382-
- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e:proxy
399+
- if: steps.changed-files.outputs.any_changed == 'true'
400+
run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e:proxy
383401

384402
- if: always()
385403
run: ~/.cache/caddy/caddy stop --config ./ci/Caddyfile

0 commit comments

Comments
 (0)