From 0199c5b9d50e6cbc5e5118975fa77f82589c574a Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Mon, 18 Jan 2021 12:39:37 +0000 Subject: [PATCH] ci: only build the master branch on push (#118) Otherwise, in the case a PR is created from a branch that is pushed to this repo, we create a workflow run for the PR and the branch itself. Also switch to a fail-fast false strategy (because this is more helpful when testing multiple Go versions in a matrix) --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8680fec6..c5499e03 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,15 @@ -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - '**' name: Test jobs: test: strategy: + fail-fast: false matrix: go-version: [1.14.x, 1.15.x] os: [ubuntu-latest, macos-latest, windows-latest]