glider/.github/workflows/build.yml

31 lines
581 B
YAML
Raw Normal View History

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:
go-version: 1.15.x
2020-04-03 22:54:13 +08:00
- name: Test
run: go test -v .
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
uses: actions/setup-go@v2
2020-04-03 22:54:13 +08:00
with:
go-version: 1.15.x
2020-04-03 22:54:13 +08:00
- name: Build
run: go build -v .