Skip to content

Commit

Permalink
👷(project) filter CI workflows given changed paths
Browse files Browse the repository at this point in the history
We don't need to execute the whole CI if we only changed things in the
client. Let's save some kitties! 😸
  • Loading branch information
jmaupetit committed Dec 5, 2024
1 parent 4cec15c commit f4d0ecf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "src/api/**"

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "src/client/**"

permissions:
contents: read
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ name: dashboard CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
paths:
- "src/dashboard/**"

jobs:
build-dashboard:
Expand All @@ -26,7 +28,7 @@ jobs:
run: |
cd src/dashboard
pipenv install -d
lint-dashboard:
needs: build-dashboard
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "src/api/**"
- "src/client/**"

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prefect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "src/prefect/**"

permissions:
contents: read
Expand Down

0 comments on commit f4d0ecf

Please sign in to comment.