From a506a1b3e9ecb0159e8e8c72a14607bf4a61fa0f Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 29 Sep 2022 01:46:57 +0100 Subject: [PATCH 1/3] Rename build job to run-tests (#86) --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8a03dd..7641176 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: pull_request: jobs: - build: + run-tests: strategy: matrix: os: [ubuntu-latest, macos-latest] From a4d1e7dc2fc17d335f179643464e640877976e8e Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 29 Sep 2022 01:52:22 +0100 Subject: [PATCH 2/3] Set test timeout to 15 minutes (#87) --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7641176..aea37a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ on: jobs: run-tests: + timeout-minutes: 15 strategy: matrix: os: [ubuntu-latest, macos-latest] From 8a4eaa0f67abed92c46f96ef5ad33dd62721eccc Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 29 Sep 2022 02:05:36 +0100 Subject: [PATCH 3/3] Only run build actions on PRs or pushes to master (#88) GitHub was doubling up the actions on every PR: once for the PR itself and once for the push to the PR. Instead, we now run on every PR, plus pushes to master branch. --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aea37a0..5eb0b2f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,13 @@ name: Build on: - push: + # Run workflow on any pull request. pull_request: + # Run workflow on pushes to the master branch. + push: + branches: [master] + jobs: run-tests: timeout-minutes: 15