From b10f967eedef4c1355480d719fc3a47a7600ca04 Mon Sep 17 00:00:00 2001 From: Timo De Meyst Date: Tue, 25 Mar 2025 22:14:41 +0100 Subject: [PATCH] actions: gebruik van paths bij testing testing workflows gebruikt paths om enkel te testen als er veranderingen zijn gemaakt die invloed hebben op de testen --- .github/workflows/backend-testing.yml | 12 ++++++++++++ .github/workflows/frontend-testing.yml | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/backend-testing.yml b/.github/workflows/backend-testing.yml index caec6c07..0d0b1f3f 100644 --- a/.github/workflows/backend-testing.yml +++ b/.github/workflows/backend-testing.yml @@ -3,12 +3,24 @@ name: Backend Testing +# Workflow runs when: +# - a backend js/ts file on "dev" changes +# - a non-draft PR to "dev" with backend js/ts files is opened, is reopened, or changes +# - a draft PR to "dev" with backend js/ts files is marked as ready for review on: push: branches: [ "dev" ] + paths: + - 'backend/src/**.[jt]s' + - 'backend/tests/**.[jt]s' + - 'backend/vitest.config.ts' pull_request: branches: [ "dev" ] types: ["synchronize", "ready_for_review", "opened", "reopened"] + paths: + - 'backend/src/**.[jt]s' + - 'backend/tests/**.[jt]s' + - 'backend/vitest.config.ts' jobs: diff --git a/.github/workflows/frontend-testing.yml b/.github/workflows/frontend-testing.yml index 825065be..ff7bde4d 100644 --- a/.github/workflows/frontend-testing.yml +++ b/.github/workflows/frontend-testing.yml @@ -3,12 +3,34 @@ name: Frontend Testing +# Workflow runs when: +# - a frontend js/ts/vue/css file on "dev" changes +# - a non-draft PR to "dev" with frontend js/ts/vue/css files is opened, is reopened, or changes +# - a draft PR to "dev" with frontend js/ts/vue/css files is marked as ready for review on: push: branches: [ "dev" ] + paths: + - 'frontend/src/**.[jt]s' + - 'frontend/src/**.vue' + - 'frontend/src/**.css' + - 'frontend/tests/**.[jt]s' + - 'frontend/tests/**.vue' + - 'frontend/tests/**.css' + - 'frontend/vitest.config.ts' + - 'frontend/playwright.config.ts' pull_request: branches: [ "dev" ] types: ["synchronize", "ready_for_review", "opened", "reopened"] + paths: + - 'frontend/src/**.[jt]s' + - 'frontend/src/**.vue' + - 'frontend/src/**.css' + - 'frontend/tests/**.[jt]s' + - 'frontend/tests/**.vue' + - 'frontend/tests/**.css' + - 'frontend/vitest.config.ts' + - 'frontend/playwright.config.ts' jobs: test: