File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : lint-test
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ pull_request :
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ golangci-lint :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-go@v5
17+ with :
18+ go-version : stable
19+ - run : go mod tidy
20+ - name : golangci-lint
21+ uses : golangci/golangci-lint-action@v7
22+ with :
23+ version : v2.0
24+ continue-on-error : true
25+
26+
27+ gosec :
28+ runs-on : ubuntu-latest
29+ env :
30+ GO111MODULE : on
31+ steps :
32+ - uses : actions/checkout@v4
33+ - uses : actions/setup-go@v5
34+ with :
35+ go-version : ' 1.23.7'
36+ - run : go mod tidy
37+ - name : Run Gosec Security Scanner
38+ uses : securego/gosec@master
39+ with :
40+ args : ./...
41+ continue-on-error : true
42+
43+
44+ gotestsum :
45+ runs-on : ubuntu-latest
46+ steps :
47+ - uses : actions/checkout@v4
48+ - uses : actions/setup-go@v5
49+ with :
50+ go-version : ' 1.23.7'
51+ - run : go mod tidy
52+ - name : go-test
53+ run : |
54+ go test -v ./...
You can’t perform that action at this time.
0 commit comments