File tree Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Original file line number Diff line number Diff line change @@ -3,32 +3,28 @@ on: [push, pull_request]
3
3
4
4
jobs :
5
5
test :
6
+ strategy :
7
+ matrix :
8
+ go : [1.18, 1.19]
9
+
6
10
name : Test
7
11
runs-on : ubuntu-latest
8
12
steps :
9
13
10
- - name : Set up Go 1.16
14
+ - name : Set up Go
11
15
uses : actions/setup-go@v2
12
16
with :
13
- go-version : ^1.16
14
- id : go
17
+ go-version : ${{matrix.go}}
15
18
16
19
- name : Check out code
17
20
uses : actions/checkout@v2
18
21
19
- - name : Install deps
20
- shell : bash --noprofile --norc -x -eo pipefail {0}
21
- run : |
22
- go get -u honnef.co/go/tools/cmd/staticcheck
23
- go get -u github.com/client9/misspell/cmd/misspell
24
-
25
22
- name : Lint
26
- shell : bash --noprofile --norc -x -eo pipefail {0}
27
23
run : |
28
- $(exit $(go fmt ./... | wc -l))
29
- misspell -error -locale US .
30
- staticcheck ./...
24
+ ls -al
25
+ make lint-pkgs
26
+ make lint
31
27
32
28
- name : Test
33
29
run : |
34
- go test -race ./...
30
+ make test
Original file line number Diff line number Diff line change 4
4
* .dll
5
5
* .so
6
6
* .dylib
7
+ .idea /
7
8
8
9
# Test binary, build with `go test -c`
9
10
* .test
Original file line number Diff line number Diff line change
1
+ .PHONY : lint-pkgs lint test
2
+
3
+ lint-pkgs :
4
+ GO111MODULE=off go get -u honnef.co/go/tools/cmd/staticcheck
5
+ GO111MODULE=off go get -u github.com/client9/misspell/cmd/misspell
6
+
7
+ lint :
8
+ $(exit $(go fmt ./... | wc -l ) )
9
+ go vet ./...
10
+ find . -type f -name " *.go" | xargs misspell -error -locale US
11
+ staticcheck $(go list ./... )
12
+
13
+ test :
14
+ go test -race ./...
You can’t perform that action at this time.
0 commit comments