CI: Add status-failure and status-pending check to be sure that all steps are run (#1966)

* Test automerge with `all_github_action_checks` twice

* Add status-failure=0 and status-pending=0 on mergify

* status-pending doesn't exist, use status-neutral
This commit is contained in:
Jon Cinque 2021-06-25 21:02:24 +02:00 committed by GitHub
parent 16c2211b47
commit 683d34d41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,8 @@ pull_request_rules:
conditions:
- check-success=Travis CI - Pull Request
- check-success=all_github_action_checks
- "#status-failure=0"
- "#status-neutral=0"
- label=automerge
- author≠@dont-squash-my-commits
actions:
@ -27,6 +29,8 @@ pull_request_rules:
conditions:
- check-success=Travis CI - Pull Request
- check-success=all_github_action_checks
- "#status-failure=0"
- "#status-neutral=0"
- label=automerge
- author=@dont-squash-my-commits
actions:

View File

@ -365,7 +365,6 @@ export async function failOnApproveOverspend(): Promise<void> {
const delegate = Keypair.generate();
await testToken.transfer(testAccount, account1, testAccountOwner, [], 10);
await testToken.approve(account1, delegate.publicKey, owner, [], 2);
let account1Info = await testToken.getAccountInfo(account1);