mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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:
parent
c5c6f84c7d
commit
f6dfe05c30
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -287,7 +287,7 @@ jobs:
|
||||||
runs-on:
|
runs-on:
|
||||||
labels: ubuntu-latest-4-cores
|
labels: ubuntu-latest-4-cores
|
||||||
needs: [job_get_metadata, job_install_deps]
|
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:
|
concurrency:
|
||||||
group: ${{ github.workflow }}
|
group: ${{ github.workflow }}
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Reference in a new issue