Skip to content

Commit 13ef492

Browse files
committed
e2e: conditional running based on content changes
1 parent 12b6944 commit 13ef492

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/e2e.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,30 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
e2e-tests:
15+
changes:
1616
if: github.repository_owner == 'jumpstarter-dev'
17+
runs-on: ubuntu-latest
18+
outputs:
19+
should_run: ${{ steps.filter.outputs.e2e }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: dorny/paths-filter@v3
25+
id: filter
26+
with:
27+
base: ${{ github.base_ref || github.event.merge_group.base_ref || 'main' }}
28+
filters: |
29+
e2e:
30+
- 'controller/**'
31+
- 'e2e/**'
32+
- 'python/**'
33+
- '.github/workflows/e2e.yaml'
34+
- 'Makefile'
35+
36+
e2e-tests:
37+
needs: changes
38+
if: needs.changes.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
1739
strategy:
1840
matrix:
1941
os:

0 commit comments

Comments
 (0)