2019-08-15 11:40:40 +08:00
|
|
|
name: Go
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2019-09-04 22:26:20 +08:00
|
|
|
- name: Set up Go 1.13
|
2019-08-15 11:40:40 +08:00
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2019-09-04 22:26:20 +08:00
|
|
|
go-version: 1.13
|
2019-08-15 11:40:40 +08:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
|
|
|
go test ./...
|