File tree 8 files changed +34
-21
lines changed
8 files changed +34
-21
lines changed Original file line number Diff line number Diff line change 32
32
33
33
- uses : " actions/setup-go@v3"
34
34
with :
35
- go-version : " 1.19 "
35
+ go-version : " 1.20 "
36
36
37
37
- name : " Write go.list file"
38
38
run : " go list -buildvcs=false -deps -json ./... > go.list"
46
46
steps :
47
47
- uses : " actions/checkout@v3"
48
48
49
- - uses : " actions/setup-node@v3"
50
- with :
51
- node-version : " 16.x"
52
-
53
- - name : " Install cSpell"
54
- run : " npm install -g cspell"
55
-
56
49
- name : " Run spell check"
57
50
run : " make spell-check"
58
51
67
60
- " 1.17"
68
61
- " 1.18"
69
62
- " 1.19"
63
+ - " 1.20"
70
64
steps :
71
65
- uses : " actions/checkout@v3"
72
66
Original file line number Diff line number Diff line change 18
18
19
19
- uses : " actions/setup-go@v3"
20
20
with :
21
- go-version : " 1.19 "
21
+ go-version : " 1.20 "
22
22
23
23
- name : " Write go.list file"
24
24
run : " go list -buildvcs=false -deps -json ./... > go.list"
Original file line number Diff line number Diff line change
1
+ .cache
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ linters-settings:
41
41
nestif :
42
42
min-complexity : 4
43
43
staticcheck :
44
- go : " 1.19 "
44
+ go : " 1.20 "
45
45
testpackage :
46
46
skip-regexp : " _inner_test.go"
47
47
Original file line number Diff line number Diff line change 2
2
"caseSensitive" : false ,
3
3
"dictionaries" : [
4
4
" bash" ,
5
+ " docker" ,
5
6
" golang"
6
7
],
8
+ "enableGlobDot" : true ,
9
+ "ignorePaths" : [
10
+ " .cache" ,
11
+ " .git" ,
12
+ " go.mod" ,
13
+ " go.sum"
14
+ ],
7
15
"language" : " en" ,
8
16
"minWordLength" : 4 ,
9
17
"words" : [
36
44
" rowserrcheck" ,
37
45
" scopelint" ,
38
46
" sonatype" ,
47
+ " sonatypecommunity" ,
39
48
" sqlclosecheck" ,
40
49
" staticcheck" ,
41
50
" structcheck" ,
Original file line number Diff line number Diff line change 4
4
5
5
pkg ?= ./...
6
6
7
+ .PHONY : clean
8
+ clean :
9
+ rm -rf .cache/*
10
+
7
11
.PHONY : fmt
8
12
fmt :
9
13
go fmt $(pkg )
10
14
11
15
.PHONY : lint
12
16
lint :
13
- golangci-lint run $(pkg )
17
+ docker pull golangci/golangci-lint:latest > /dev/null \
18
+ && mkdir -p .cache/golangci-lint \
19
+ && docker run --rm \
20
+ -v $(shell pwd) :/app \
21
+ -v $(shell pwd) /.cache:/root/.cache \
22
+ -w /app golangci/golangci-lint:latest golangci-lint run $(pkg )
14
23
15
24
.PHONY : nancy
16
25
nancy :
17
- go list -buildvcs=false -deps -json ./... | nancy sleuth
26
+ docker pull sonatypecommunity/nancy:latest > /dev/null \
27
+ && go list -buildvcs=false -deps -json ./... \
28
+ | docker run --rm -i sonatypecommunity/nancy:latest sleuth
18
29
19
30
.PHONY : spell-check
20
31
spell-check :
21
- # npm install -g cspell@ latest
22
- cspell lint --config .vscode/cspell.json " .* " && \
23
- cspell lint --config .vscode/cspell.json " **/.* " && \
24
- cspell lint --config .vscode/cspell.json " .{github,vscode}/**/* " && \
25
- cspell lint --config .vscode/cspell.json " **"
32
+ docker pull ghcr.io/streetsidesoftware/ cspell: latest > /dev/null \
33
+ && docker run --rm \
34
+ -v $( shell pwd) :/workdir \
35
+ ghcr.io/streetsidesoftware/cspell:latest \
36
+ --config .vscode/cspell.json " **"
26
37
27
38
.PHONY : test
28
39
test :
Original file line number Diff line number Diff line change 24
24
## Requirements
25
25
26
26
- Go 1.16 以上.
27
-
28
- - [ golangci-lint] ( https://golangci-lint.run )
27
+ - Docker (開発時)
29
28
30
29
## Install
31
30
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ This package is awesome.
24
24
## Requirements
25
25
26
26
- Go 1.16 or above.
27
-
28
- - [ golangci-lint] ( https://golangci-lint.run )
27
+ - Docker (for Development)
29
28
30
29
## Install
31
30
You can’t perform that action at this time.
0 commit comments