From b55d3969ae02ba866c362f48e44df8c3f427c826 Mon Sep 17 00:00:00 2001 From: abuzogan Date: Fri, 15 Mar 2024 14:36:03 +0100 Subject: [PATCH] Fix #114 try 2 --- .github/workflows/ci-linter-backend.yaml | 6 ++++-- .github/workflows/ci-linter-frontend.yaml | 6 ++++-- .github/workflows/ci-test-backend.yaml | 6 ++++-- .github/workflows/ci-test-frontend.yaml | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-linter-backend.yaml b/.github/workflows/ci-linter-backend.yaml index aaa9c126..401e96fb 100644 --- a/.github/workflows/ci-linter-backend.yaml +++ b/.github/workflows/ci-linter-backend.yaml @@ -1,9 +1,11 @@ name: UGent-3-backend-linter run-name: ${{ github.actor }} is running backend linter 🚀 -on: [pull_request] +on: + pull_request: + paths: + - 'backend/**' jobs: Backend-tests: - if: contains(github.event.pull_request.changed_files.*.filename, 'backend/') runs-on: self-hosted steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci-linter-frontend.yaml b/.github/workflows/ci-linter-frontend.yaml index c8864d7b..a364d160 100644 --- a/.github/workflows/ci-linter-frontend.yaml +++ b/.github/workflows/ci-linter-frontend.yaml @@ -1,9 +1,11 @@ name: UGent-3-frontend-linter run-name: ${{ github.actor }} is running frontend linter 🚀 -on: [pull_request] +on: + pull_request: + paths: + - 'backend/**' jobs: Frontend-tests: - if: contains(github.event.pull_request.changed_files.*.filename, 'frontend/') runs-on: self-hosted steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci-test-backend.yaml b/.github/workflows/ci-test-backend.yaml index 83f3dd31..0b2faf75 100644 --- a/.github/workflows/ci-test-backend.yaml +++ b/.github/workflows/ci-test-backend.yaml @@ -1,9 +1,11 @@ name: UGent-3-backend-test run-name: ${{ github.actor }} is running backend tests 🚀 -on: [pull_request] +on: + pull_request: + paths: + - 'backend/**' jobs: Backend-tests: - if: contains(github.event.pull_request.changed_files.*.filename, 'backend/') runs-on: self-hosted steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci-test-frontend.yaml b/.github/workflows/ci-test-frontend.yaml index cd372c0e..210ec6d0 100644 --- a/.github/workflows/ci-test-frontend.yaml +++ b/.github/workflows/ci-test-frontend.yaml @@ -1,9 +1,11 @@ name: UGent-3-frontend-test run-name: ${{ github.actor }} is running frontend tests 🚀 -on: [pull_request] +on: + pull_request: + paths: + - 'frontend/**' jobs: Frontend-tests: - if: contains(github.event.pull_request.changed_files.*.filename, 'frontend/') runs-on: self-hosted steps: - uses: actions/checkout@v4