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
|
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:
|
||||||
|
|
Loading…
Reference in New Issue