From f4d0ecfb0ced47f79454f1bfc4b8d2c611c03d83 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Wed, 4 Dec 2024 17:52:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(project)=20filter=20CI=20workflows?= =?UTF-8?q?=20given=20changed=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't need to execute the whole CI if we only changed things in the client. Let's save some kitties! 😸 --- .github/workflows/api.yml | 2 ++ .github/workflows/client.yml | 2 ++ .github/workflows/dashboard.yml | 8 +++++--- .github/workflows/docker-images.yml | 3 +++ .github/workflows/prefect.yml | 2 ++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index a6623332..ead48e06 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -8,6 +8,8 @@ on: branches: ["main"] pull_request: branches: ["main"] + paths: + - "src/api/**" permissions: contents: read diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 0f5819a3..23d6c686 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -8,6 +8,8 @@ on: branches: ["main"] pull_request: branches: ["main"] + paths: + - "src/client/**" permissions: contents: read diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index e941afa8..7b0976f6 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -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: @@ -26,7 +28,7 @@ jobs: run: | cd src/dashboard pipenv install -d - + lint-dashboard: needs: build-dashboard runs-on: ubuntu-latest diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 7b7422f5..b0e414a9 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -5,6 +5,9 @@ on: branches: ["main"] pull_request: branches: ["main"] + paths: + - "src/api/**" + - "src/client/**" jobs: build: diff --git a/.github/workflows/prefect.yml b/.github/workflows/prefect.yml index 9dbcf398..2a96e8b9 100644 --- a/.github/workflows/prefect.yml +++ b/.github/workflows/prefect.yml @@ -8,6 +8,8 @@ on: branches: ["main"] pull_request: branches: ["main"] + paths: + - "src/prefect/**" permissions: contents: read