File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
9
+ changes_filter :
10
+ name : Detect Relevant Path Changes
11
+ runs-on : ubuntu-latest
12
+ outputs :
13
+ # This output will be 'true' if files in the 'table_related_paths' list changed, 'false' otherwise.
14
+ table_paths_changed : ${{ steps.filter.outputs.table_related_paths }}
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Detect changed files for table tests
20
+ id : filter # Give an ID to this step to reference its outputs
21
+ uses : dorny/paths-filter@v3
22
+ with :
23
+ filters : |
24
+ table_related_paths:
25
+ - 'components/dash-table/**'
26
+ - 'dash/dash-renderer/**'
27
+
9
28
build :
10
29
name : Build Dash Package
11
30
runs-on : ubuntu-latest
@@ -278,7 +297,12 @@ jobs:
278
297
279
298
table-server :
280
299
name : Table Server Tests (Group ${{ matrix.test-group }})
281
- needs : build
300
+ needs : [build, changes_filter]
301
+ # Conditional execution:
302
+ # OR if the 'changes_filter' job detected changes in 'table_related_paths'.
303
+ if : |
304
+ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')) ||
305
+ needs.changes_filter.outputs.table_paths_changed == 'true'
282
306
runs-on : ubuntu-latest
283
307
strategy :
284
308
fail-fast : false
You can’t perform that action at this time.
0 commit comments