Skip to content

Commit dd050e4

Browse files
committed
Run linter only with latest Go version
1 parent 698858f commit dd050e4

File tree

3 files changed

+424
-8
lines changed

3 files changed

+424
-8
lines changed

.github/workflows/go.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
name: Go
33
on: [push, pull_request]
44
jobs:
5-
build:
6-
name: Build
5+
lint:
6+
name: Lint
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
goVer: [1.11, 1.12, 1.13]
118
steps:
129
- name: Set up Go ${{ matrix.goVer }}
1310
uses: actions/setup-go@v1
1411
with:
15-
go-version: ${{ matrix.goVer }}
16-
id: go
12+
go-version: 1.13
1713
- name: Check out code into the Go module directory
1814
uses: actions/checkout@v1
1915
- name: GolangCI-Lint
@@ -25,6 +21,19 @@ jobs:
2521
run: |
2622
go get -u honnef.co/go/tools/cmd/staticcheck
2723
$(go env GOPATH)/bin/staticcheck ./...
24+
test:
25+
name: Test
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
goVer: [1.11, 1.12, 1.13]
30+
steps:
31+
- name: Set up Go ${{ matrix.goVer }}
32+
uses: actions/setup-go@v1
33+
with:
34+
go-version: ${{ matrix.goVer }}
35+
- name: Check out code into the Go module directory
36+
uses: actions/checkout@v1
2837
- name: Make
2938
run: make
3039
- name: Coveralls

go.mod

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,26 @@ module github.com/joeig/go-powerdns
22

33
go 1.13
44

5-
require gopkg.in/jarcoal/httpmock.v1 v1.0.0-20180719183105-8007e27cdb32
5+
require (
6+
github.com/bombsimon/wsl v1.2.8 // indirect
7+
github.com/go-critic/go-critic v0.4.0 // indirect
8+
github.com/gogo/protobuf v1.3.1 // indirect
9+
github.com/golangci/gocyclo v0.0.0-20180528144436-0a533e8fa43d // indirect
10+
github.com/golangci/golangci-lint v1.21.0 // indirect
11+
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039 // indirect
12+
github.com/gostaticanalysis/analysisutil v0.0.3 // indirect
13+
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
14+
github.com/mattn/go-isatty v0.0.11 // indirect
15+
github.com/pelletier/go-toml v1.6.0 // indirect
16+
github.com/securego/gosec v0.0.0-20191219224501-5d613739e150 // indirect
17+
github.com/spf13/afero v1.2.2 // indirect
18+
github.com/spf13/cast v1.3.1 // indirect
19+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
20+
github.com/spf13/viper v1.6.1 // indirect
21+
github.com/uudashr/gocognit v1.0.1 // indirect
22+
golang.org/x/sys v0.0.0-20191220220014-0732a990476f // indirect
23+
golang.org/x/tools v0.0.0-20191220234730-f13409bbebaf // indirect
24+
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20180719183105-8007e27cdb32
25+
mvdan.cc/unparam v0.0.0-20191111180625-960b1ec0f2c2 // indirect
26+
sourcegraph.com/sqs/pbtypes v1.0.0 // indirect
27+
)

0 commit comments

Comments
 (0)