From 00a6e67a5f585e7f5ed5bc0c2ec5f7e0a789dcdf Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 23 Jun 2025 17:14:18 -0400 Subject: [PATCH] feat(workflows): add paths to push and pull_request triggers for backend and frontend workflows --- .github/workflows/backend-test.yml | 13 ++++++++++++- .github/workflows/frontend-test.yml | 13 ++++++++++++- .github/workflows/trivy_security_scans.yml | 8 ++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index a01cd48..6c81bc1 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -4,8 +4,19 @@ permissions: contents: read on: - pull_request: push: + branches: + - main + - development + paths: + - "backend/**" + + pull_request: + branches: + - main + - development + paths: + - "backend/**" jobs: build: diff --git a/.github/workflows/frontend-test.yml b/.github/workflows/frontend-test.yml index 8a95cd8..1d53a48 100644 --- a/.github/workflows/frontend-test.yml +++ b/.github/workflows/frontend-test.yml @@ -4,8 +4,19 @@ permissions: contents: read on: - pull_request: push: + branches: + - main + - development + paths: + - "frontend/**" + + pull_request: + branches: + - main + - development + paths: + - "frontend/**" jobs: build: diff --git a/.github/workflows/trivy_security_scans.yml b/.github/workflows/trivy_security_scans.yml index a067ae6..8d4e7ff 100644 --- a/.github/workflows/trivy_security_scans.yml +++ b/.github/workflows/trivy_security_scans.yml @@ -5,10 +5,18 @@ on: branches: - main - development + paths: + - "backend/**" + - "frontend/**" + pull_request: branches: - main - development + paths: + - "backend/**" + - "frontend/**" + schedule: - cron: "0 8 * * 1" # Weekly scan on Mondays at 8 AM UTC