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:
Daniel Lockyer 2023-07-03 13:31:19 +02:00 committed by Daniel Lockyer
parent ca8d8a5014
commit cb8ef8daa2

View File

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