Create go.yml

This commit is contained in:
Yo-An Lin 2021-12-05 00:37:46 +08:00 committed by GitHub
parent de0a887b90
commit 8a85ddb54a

25
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build -v ./cmd/bbgo
- name: Test
run: go test -v ./pkg/...