Add go.yaml to trigger actions on pull requests (#84)
This commit is contained in:
parent
c3f9cefce8
commit
d68341c4e2
26
.github/workflows/go.yml
vendored
Normal file
26
.github/workflows/go.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18
|
||||
cache: true
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
Loading…
Reference in New Issue
Block a user