2019-09-15 20:50:52 +08:00
|
|
|
name: Build
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
2020-08-10 18:43:41 +08:00
|
|
|
uses: actions/setup-go@v2
|
2020-04-03 22:54:13 +08:00
|
|
|
with:
|
2020-08-13 21:09:54 +08:00
|
|
|
go-version: 1.15.x
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Test
|
|
|
|
run: go test -v .
|
2019-09-15 20:50:52 +08:00
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [test]
|
|
|
|
steps:
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
2020-08-13 21:09:54 +08:00
|
|
|
uses: actions/setup-go@v2
|
2020-04-03 22:54:13 +08:00
|
|
|
with:
|
2020-08-13 21:09:54 +08:00
|
|
|
go-version: 1.15.x
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Build
|
|
|
|
run: go build -v .
|