From c4951323f63614b07a006e748c1bd5a8a7fcdafa Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 22 Feb 2022 13:25:31 -0500 Subject: [PATCH 1/2] Run CI on pull requests This ensures CI automatically runs on PRs, even if submitted from forks. Doing this avoids a silly case of a PR being ready to merge and having a green "merge" button, only for the bors to start test&submitting it, realizing PR has bugs, and waiting for a fix from a user and another review from the maintainer. --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d9cac5bb..52d796177 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,6 @@ on: push: + pull_request: schedule: [cron: "45 6 * * *"] name: Run tests From 3827403fa4dd904622accbfd28f73eb2aefca044 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 22 Feb 2022 13:49:50 -0500 Subject: [PATCH 2/2] limit push CI to main branches --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52d796177..85c35af2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,10 @@ on: push: + branches: + - main + - master + - staging + - trying pull_request: schedule: [cron: "45 6 * * *"]