chore: set paths in github actions to reduce the ci time

This commit is contained in:
Lucas.Xu 2022-09-02 21:40:28 +08:00 committed by Nathan.fooo
parent 118891923f
commit d2c118ad02
4 changed files with 35 additions and 10 deletions

View File

@ -7,9 +7,16 @@ name: Flutter lint
on:
push:
branches: [main]
branches:
- "main"
paths:
- "frontend/app_flowy/**"
pull_request:
branches: [main]
branches:
- "main"
paths:
- "frontend/app_flowy/**"
env:
CARGO_TERM_COLOR: always

View File

@ -4,11 +4,14 @@ on:
push:
branches:
- "main"
paths:
- "frontend/app_flowy/**"
pull_request:
branches:
- "main"
- "feat/flowy_editor"
paths:
- "frontend/app_flowy/**"
env:
CARGO_TERM_COLOR: always

View File

@ -2,10 +2,18 @@ name: Rust lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- "main"
paths:
- "frontend/rust-lib/**"
- "shared-lib/**"
pull_request:
branches:
- "main"
paths:
- "frontend/rust-lib/**"
- "shared-lib/**"
env:
CARGO_TERM_COLOR: always

View File

@ -2,11 +2,18 @@ name: Unit test(Rust)
on:
push:
branches:
- 'main'
branches:
- "main"
paths:
- "frontend/rust-lib/**"
- "shared-lib/**"
pull_request:
branches:
- 'main'
branches:
- "main"
paths:
- "frontend/rust-lib/**"
- "shared-lib/**"
env:
CARGO_TERM_COLOR: always