From cef46e236ad8713f3c4e50af4e6e2b23f4cebdae Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Thu, 23 May 2024 17:38:20 +0200 Subject: [PATCH] chore(github-workflow): run the tests only when the tests belong to the changed folder --- .github/workflows/backend.yaml | 5 +++++ .github/workflows/frontend.yaml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/backend.yaml b/.github/workflows/backend.yaml index fc32745fb..117b9c8c2 100644 --- a/.github/workflows/backend.yaml +++ b/.github/workflows/backend.yaml @@ -4,7 +4,12 @@ name: Backend CI on: push: branches: [main] + paths: + - 'backend/**' pull_request: + paths: + - 'backend/**' + jobs: build: diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 6817c007c..7198e3b06 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -4,7 +4,11 @@ name: Frontend CI on: push: branches: [main] + paths: + - 'frontend/**' pull_request: + paths: + - 'frontend/**' env: NODE_VERSION: 18