Only run go build action on pull requests (#104)
Bumps to #major release tag
This commit is contained in:
committed by
GitHub
parent
debbf55572
commit
231972607d
11
.github/workflows/go.yaml
vendored
11
.github/workflows/go.yaml
vendored
@@ -1,25 +1,18 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.19'
|
||||
|
||||
- name: Build
|
||||
run: make compile
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
||||
Reference in New Issue
Block a user