mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
Added CI step to allow PR automerge
fixes https://github.com/TryGhost/Toolbox/issues/608 - this step will be waited on in CI config so we can ensure all tests have passed before automerging PRs
This commit is contained in:
parent
ca8d8a5014
commit
cb8ef8daa2
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -448,6 +448,17 @@ jobs:
|
||||
with:
|
||||
flags: unit-tests
|
||||
|
||||
check:
|
||||
name: Allow Pull Request auto-merge
|
||||
if: always() && github.event_name == 'pull_request'
|
||||
needs: [lint, ghost-cli, admin-tests, migrations, unit-tests, database-tests, regression-tests]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Decide whether the needed jobs succeeded or failed
|
||||
uses: re-actors/alls-green@release/v1
|
||||
with:
|
||||
jobs: ${{ toJSON(needs) }}
|
||||
|
||||
canary:
|
||||
needs: [lint, ghost-cli, admin-tests, migrations, unit-tests, database-tests, regression-tests]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
|
Loading…
Reference in New Issue
Block a user