Added guard against non-code changes to run CI tests

- we don't want to run browser tests if no code has changed
This commit is contained in:
Daniel Lockyer 2023-10-25 11:45:51 +02:00 committed by Daniel Lockyer
parent c5c6f84c7d
commit f6dfe05c30

View File

@ -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: