Update go.yml

This commit is contained in:
Enrico Stahn 2020-03-03 21:59:20 +11:00 committed by GitHub
parent 4549407ba9
commit 9c6e0e0e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ name: Go
on: [push] on: [push]
jobs: jobs:
test: lint:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -21,3 +21,20 @@ jobs:
- name: Lint - name: Lint
run: $(go env GOPATH)/bin/golangci-lint run run: $(go env GOPATH)/bin/golangci-lint run
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: go test ./...