From f6dfe05c3055f78281a61198972ccec3ffedd9fb Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 25 Oct 2023 11:45:51 +0200 Subject: [PATCH] Added guard against non-code changes to run CI tests - we don't want to run browser tests if no code has changed --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0c15fd52e..67bd014759 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -287,7 +287,7 @@ jobs: runs-on: labels: ubuntu-latest-4-cores needs: [job_get_metadata, job_install_deps] - if: needs.job_get_metadata.outputs.is_main == 'true' || needs.job_get_metadata.outputs.has_browser_tests_label == 'true' + if: needs.job_get_metadata.outputs.changed_any_code == 'true' && (needs.job_get_metadata.outputs.is_main == 'true' || needs.job_get_metadata.outputs.has_browser_tests_label == 'true') concurrency: group: ${{ github.workflow }} steps: