Skip to content

Commit

Permalink
Added CI step to allow PR automerge
Browse files Browse the repository at this point in the history
fixes TryGhost/Toolbox#608

- this step will be waited on in CI config so we can ensure all tests
  have passed before automerging PRs
  • Loading branch information
daniellockyer committed Jul 3, 2023
1 parent ca8d8a5 commit cb8ef8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cb8ef8d

Please sign in to comment.