Skip to content

Commit 38a1e45

Browse files
authored
Run CI only when relevant directories are modified (#530)
This avoids spawning dozens of jobs when modifying unrelated files (like README, documentation, etc...)
1 parent eb707ea commit 38a1e45

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

.github/workflows/Documenter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ on:
55
branches:
66
- master
77
tags: '*'
8+
paths:
9+
- 'docs/**'
10+
- 'src/**'
811
pull_request:
12+
paths:
13+
- 'docs/**'
14+
- 'src/**'
915

1016
jobs:
1117
docs-build:

.github/workflows/ShellCheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
branches:
66
- master
77
tags: '*'
8+
paths:
9+
- 'bin/**'
810
pull_request:
11+
paths:
12+
- 'bin/**'
913

1014
jobs:
1115
shellcheck:

.github/workflows/UnitTests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
name: Unit Tests
1+
name: MPI.jl Unit Tests
22

33
on:
44
pull_request:
5-
5+
paths:
6+
- 'bin/**'
7+
- 'deps/**'
8+
- 'src/**'
9+
- 'test/**'
610
push:
711
branches:
812
- master
13+
paths:
14+
- 'bin/**'
15+
- 'deps/**'
16+
- 'src/**'
17+
- 'test/**'
918

1019
jobs:
1120
test-jll:
@@ -17,9 +26,6 @@ jobs:
1726
- ubuntu-latest
1827
- windows-latest
1928
julia_version:
20-
# Unsupported - "1.3"
21-
# Unsupported - "1.4"
22-
# Unsupported - "1.5"
2329
- "1.6"
2430
- "1.7"
2531
- "nightly"

0 commit comments

Comments
 (0)