From d2c118ad0266989fa4fd8387d6ae53b1ac08d828 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Fri, 2 Sep 2022 21:40:28 +0800 Subject: [PATCH] chore: set paths in github actions to reduce the ci time --- .github/workflows/dart_lint.yml | 11 +++++++++-- .github/workflows/dart_test.yml | 5 ++++- .github/workflows/rust_lint.yml | 14 +++++++++++--- .github/workflows/rust_test.yml | 15 +++++++++++---- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dart_lint.yml b/.github/workflows/dart_lint.yml index 251848fb31..30f65cc752 100644 --- a/.github/workflows/dart_lint.yml +++ b/.github/workflows/dart_lint.yml @@ -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 diff --git a/.github/workflows/dart_test.yml b/.github/workflows/dart_test.yml index 33cbeb1a3a..9171fb6dea 100644 --- a/.github/workflows/dart_test.yml +++ b/.github/workflows/dart_test.yml @@ -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 diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml index 471654083c..435b1388f2 100644 --- a/.github/workflows/rust_lint.yml +++ b/.github/workflows/rust_lint.yml @@ -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 diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml index 30b1f15576..4fb2a2ec0a 100644 --- a/.github/workflows/rust_test.yml +++ b/.github/workflows/rust_test.yml @@ -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