chore: only run github action on main or pull request (#4)

Co-authored-by: Tran Hau <ngtranhau@gmail.com>
main
sudo pacman -Syu 2021-04-14 11:36:36 +07:00 committed by GitHub
parent ef390ca1a4
commit 621461233f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
name: Go name: Go
on: [push, pull_request] on:
push:
branches:
- main
pull_request:
branches:
- main
jobs: jobs:
test: test:
@ -12,7 +18,7 @@ jobs:
with: with:
go-version: "~1.16" go-version: "~1.16"
- run: go test -race ./... - run: go test -race ./...
build-gotip: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: