File tree 2 files changed +6
-18
lines changed
2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 6
6
check :
7
7
name : Check
8
8
runs-on : ubuntu-latest
9
+ # Execute the checks inside the contianer instead the VM.
10
+ container : golangci/golangci-lint:v1.27.0-alpine
9
11
steps :
10
- - uses : actions/setup-go@v1
11
- with :
12
- go-version : 1.13
13
- - name : Get golangci
14
- run : |
15
- # Add go binaries to GOPATH.
16
- # FIX: https://github.com/actions/setup-go/issues/14
17
- export PATH=${PATH}:`go env GOPATH`/bin
18
- go get -u github.com/golangci/golangci-lint/...
19
12
- uses : actions/checkout@v1
20
- - name : check
21
- run : |
22
- # Add go binaries to GOPATH.
23
- # FIX: https://github.com/actions/setup-go/issues/14
24
- export PATH=${PATH}:`go env GOPATH`/bin
25
- make check
13
+ - run : golangci-lint run -E goimports
26
14
27
15
test :
28
16
name : Test
31
19
- uses : actions/checkout@v1
32
20
- uses : actions/setup-go@v1
33
21
with :
34
- go-version : 1.13
22
+ go-version : 1.14
35
23
- run : make test
Original file line number Diff line number Diff line change 1
1
2
- UNIT_TEST_CMD := go test ` go list ./... | grep -v vendor ` -race -v
3
- INTEGRATION_TEST_CMD := go test ` go list ./... | grep -v vendor ` -race -v -tags='integration'
2
+ UNIT_TEST_CMD := go test ` go list ./... | grep -v vendor ` -race
3
+ INTEGRATION_TEST_CMD := go test ` go list ./... | grep -v vendor ` -race -tags='integration'
4
4
BENCHMARK_CMD := go test ` go list ./... | grep -v vendor ` -benchmem -bench=.
5
5
CHECK_CMD = golangci-lint run -E goimports
6
6
DEPS_CMD := go mod tidy
You can’t perform that action at this time.
0 commit comments