Skip to content

Commit d2c118a

Browse files
LucasXu0appflowy
authored andcommitted
chore: set paths in github actions to reduce the ci time
1 parent 1188919 commit d2c118a

File tree

4 files changed

+35
-10
lines changed

4 files changed

+35
-10
lines changed

.github/workflows/dart_lint.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ name: Flutter lint
77

88
on:
99
push:
10-
branches: [main]
10+
branches:
11+
- "main"
12+
paths:
13+
- "frontend/app_flowy/**"
14+
1115
pull_request:
12-
branches: [main]
16+
branches:
17+
- "main"
18+
paths:
19+
- "frontend/app_flowy/**"
1320

1421
env:
1522
CARGO_TERM_COLOR: always

.github/workflows/dart_test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
push:
55
branches:
66
- "main"
7+
paths:
8+
- "frontend/app_flowy/**"
79

810
pull_request:
911
branches:
1012
- "main"
11-
- "feat/flowy_editor"
13+
paths:
14+
- "frontend/app_flowy/**"
1215

1316
env:
1417
CARGO_TERM_COLOR: always

.github/workflows/rust_lint.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@ name: Rust lint
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
branches:
6+
- "main"
7+
paths:
8+
- "frontend/rust-lib/**"
9+
- "shared-lib/**"
810

11+
pull_request:
12+
branches:
13+
- "main"
14+
paths:
15+
- "frontend/rust-lib/**"
16+
- "shared-lib/**"
917

1018
env:
1119
CARGO_TERM_COLOR: always

.github/workflows/rust_test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: Unit test(Rust)
22

33
on:
44
push:
5-
branches:
6-
- 'main'
5+
branches:
6+
- "main"
7+
paths:
8+
- "frontend/rust-lib/**"
9+
- "shared-lib/**"
10+
711
pull_request:
8-
branches:
9-
- 'main'
12+
branches:
13+
- "main"
14+
paths:
15+
- "frontend/rust-lib/**"
16+
- "shared-lib/**"
1017

1118
env:
1219
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)