Skip to content

Commit 2dad130

Browse files
authored
feat: only run tests on relevent changes (#31)
1 parent 212027c commit 2dad130

File tree

6 files changed

+56
-11
lines changed

6 files changed

+56
-11
lines changed

.github/workflows/Documentation.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
pull_request:
1010
branches:
1111
- 'main'
12+
types:
13+
- opened
14+
- reopened
15+
- synchronize
16+
- ready_for_review
1217

1318
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1419
permissions:

.github/workflows/Downstream.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
name: IntegrationTest
2+
23
on:
34
push:
4-
tags:
5-
- '*'
65
branches:
76
- 'main'
87
pull_request:
98
branches:
109
- 'main'
10+
paths:
11+
- '.github/workflows/Downstream.yml'
12+
- 'src/**'
13+
- 'ext/**'
14+
- 'test/**'
15+
- 'Project.toml'
16+
types:
17+
- opened
18+
- reopened
19+
- synchronize
20+
- ready_for_review
21+
1122
concurrency:
1223
# Skip intermediate builds: always.
1324
# Cancel intermediate builds: only if it is a pull request build.

.github/workflows/Format.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: format-check
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
tags: '*'
84
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
910

1011
jobs:
1112
build:

.github/workflows/SpellCheck.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Spell Check
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
410

511
jobs:
612
typos-check:

.github/workflows/Tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
name: Tests
2+
23
on:
34
push:
4-
tags:
5-
- '*'
65
branches:
76
- 'main'
87
pull_request:
98
branches:
109
- 'main'
10+
paths:
11+
- '.github/workflows/Tests.yml'
12+
- 'src/**'
13+
- 'ext/**'
14+
- 'test/**'
15+
- 'Project.toml'
16+
types:
17+
- opened
18+
- reopened
19+
- synchronize
20+
- ready_for_review
21+
1122
concurrency:
1223
# Skip intermediate builds: always.
1324
# Cancel intermediate builds: only if it is a pull request build.

.github/workflows/downgrade.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
name: Downgrade
2+
23
on:
34
push:
4-
tags:
5-
- '*'
65
branches:
76
- 'main'
87
pull_request:
98
branches:
109
- 'main'
10+
paths:
11+
- '.github/workflows/downgrade.yml'
12+
- 'src/**'
13+
- 'ext/**'
14+
- 'test/**'
15+
- 'Project.toml'
16+
types:
17+
- opened
18+
- reopened
19+
- synchronize
20+
- ready_for_review
21+
1122
jobs:
1223
test:
1324
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}

0 commit comments

Comments
 (0)