2020-03-03 05:33:41 +00:00
|
|
|
name: Go
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
test:
|
2020-03-03 05:46:33 +00:00
|
|
|
name: Lint
|
2020-03-03 05:33:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2020-03-03 10:47:07 +00:00
|
|
|
- name: Set up Go 1.14
|
2020-03-03 05:33:41 +00:00
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2020-03-03 10:47:07 +00:00
|
|
|
go-version: 1.14
|
2020-03-03 05:33:41 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-03-03 10:47:07 +00:00
|
|
|
- name: Install golangci-lint
|
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.7
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: golangci-lint run
|