Skip to content

Commit

Permalink
Only run nexus/flow/ui CI when PR affects their directory (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Dec 19, 2023
1 parent 6a08210 commit 8e15e28
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches: [main, release/*]
pull_request:
branches:
- "main"
- "release/*"
branches: [main, release/*]

jobs:
build:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Flow build and test

on:
pull_request:
branches:
- "main"
branches: [main]
push:
branches: [main]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golang-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: GolangCI-Lint

on:
pull_request:
branches:
- "main"
branches: [main]
paths: [flow/**]

jobs:
golangci-lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: clippy-action

on:
pull_request:
branches:
- "main"
branches: [main]
paths: [nexus/**]

jobs:
clippy:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ui-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Build & Test UI

on:
push:
branches:
- main
branches: [main]
pull_request:
branches:
- main
branches: [main]
paths: [ui/**]

jobs:
build-test:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ui-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Lint UI

on:
push:
branches:
- main
branches: [main]
pull_request:
branches:
- main
branches: [main]
paths: [ui/**]

permissions:
checks: write
Expand Down

0 comments on commit 8e15e28

Please sign in to comment.