chore: only run github action on main or pull request (#4)
Co-authored-by: Tran Hau <ngtranhau@gmail.com>main
parent
ef390ca1a4
commit
621461233f
|
@ -1,6 +1,12 @@
|
|||
name: Go
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
@ -12,7 +18,7 @@ jobs:
|
|||
with:
|
||||
go-version: "~1.16"
|
||||
- run: go test -race ./...
|
||||
build-gotip:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue