File tree Expand file tree Collapse file tree 6 files changed +44
-23
lines changed
Expand file tree Collapse file tree 6 files changed +44
-23
lines changed Original file line number Diff line number Diff line change 66 push :
77 branches :
88 - " master"
9- tags :
10- - " !*"
119
1210jobs :
1311 build :
4442
4543 - name : Run tests
4644 run : go test -v -race -cover ./...
47-
48- lint :
49- name : Lint
50- runs-on : ubuntu-22.04
51-
52- steps :
53- - name : Setup go
54- uses : actions/setup-go@v2
55- with :
56- go-version : 1.19
57-
58- - name : Checkout code
59- uses : actions/checkout@v2
60-
61- - name : Run golangci-lint
62- uses : golangci/golangci-lint-action@v2
63- with :
64- # https://github.com/golangci/golangci-lint/releases/tag/v1.50.1
65- version : v1.50.1
Original file line number Diff line number Diff line change 1+ name : Commitlint
2+ on : pull_request
3+
4+ jobs :
5+ lint :
6+ name : Commitlint
7+ runs-on : ubuntu-22.04
8+
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Run commitlint
16+ uses : wagoid/commitlint-github-action@v5
Original file line number Diff line number Diff line change 1+ name : GolangCI-Lint
2+ on :
3+ pull_request :
4+ branches :
5+ - ' *'
6+ push :
7+ branches :
8+ - " master"
9+
10+ jobs :
11+ lint :
12+ name : GolangCI-Lint
13+ runs-on : ubuntu-22.04
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v2
18+
19+ - name : Setup go
20+ uses : actions/setup-go@v2
21+ with :
22+ go-version : 1.19
23+
24+ - name : Run golangci-lint
25+ uses : golangci/golangci-lint-action@v2
26+ with :
27+ # https://github.com/golangci/golangci-lint/releases/tag/v1.50.1
28+ version : v1.50.1
Original file line number Diff line number Diff line change 11name : Release
22on :
33 push :
4- branches :
5- - " !*"
64 tags :
75 - " v*.*.*"
86
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments