Skip to content

Commit

Permalink
[Improve](CI)Optimize workflow dependencies (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs authored Jun 18, 2023
1 parent 8366ce7 commit 22b5aa4
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ github:
- Build Third Party Libraries (macOS)
- COMPILE (DORIS_COMPILE)
- Need_2_Approval
- Latest-Master-Code-Check

required_pull_request_reviews:
dismiss_stale_reviews: true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/auto_trigger_teamcity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ on:
types: [created, edited]
pull_request_review_comment:
types: [created, edited]
needs:
- latest-code-check
- be-ut-clang
- be-ut-mac
- build-extension
- build-thirdparty

env:
PULL_REQUEST_NUM: $(echo "${{ github.event.issue.pull_request.url }}" | awk -F/ '{print $NF}')
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/be-ut-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
pull_request:
schedule:
- cron: '0 4,10,16,22 * * *' # schedule it periodically to share the cache
needs:
- latest-code-check
- checkstyle


concurrency:
group: ${{ github.ref }} (BE UT Clang)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/be-ut-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
pull_request:
schedule:
- cron: '0 4,10,16,22 * * *' # schedule it periodically to share the cache
needs:
- latest-code-check

concurrency:
group: ${{ github.ref }} (BE UT macOS)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ name: Build Extensions

on:
pull_request:
needs:
- latest-code-check

concurrency:
group: ${{ github.ref }} (Build Extensions)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-thirdparty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
name: Build Third Party Libraries

on:
pull_request:
pull_request:
needs:
- latest-code-check

concurrency:
group: ${{ github.ref }} (Build Third Party Libraries)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/checkstyle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ name: FE Code Style Checker

on:
pull_request:
needs:
- latest-code-check

jobs:
java-checkstyle:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ name: BE Code Formatter

on: [push, pull_request]

needs:
- latest-code-check

jobs:
clang-format:
name: "Clang Formatter"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ name: Code Checks

on: [push, pull_request_target]

needs:
- latest-code-check

jobs:
shellcheck:
name: ShellCheck
Expand Down

0 comments on commit 22b5aa4

Please sign in to comment.