Skip to content

Commit

Permalink
ci: only build the master branch on push (#118)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
myitcv committed Jan 18, 2021
1 parent eea92b9 commit 0199c5b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .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]
Expand Down

0 comments on commit 0199c5b

Please sign in to comment.