-
Notifications
You must be signed in to change notification settings - Fork 249
63 lines (63 loc) · 1.82 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: lint
on: [push, pull_request]
jobs:
bcs-webconsole:
name: bcs-webconsole
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version-file: bcs-services/bcs-webconsole/go.mod
- name: go mod tidy check
uses: katexochen/go-tidy-check@v2
with:
modules: bcs-services/bcs-webconsole
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --timeout=30m --issues-exit-code=0
working-directory: bcs-services/bcs-webconsole
bcs-monitor:
name: bcs-monitor
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version-file: bcs-services/bcs-monitor/go.mod
- name: go mod tidy check
uses: katexochen/go-tidy-check@v2
with:
modules: bcs-services/bcs-monitor
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --timeout=30m
working-directory: bcs-services/bcs-monitor
bcs-bscp:
name: bcs-bscp
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version-file: bcs-services/bcs-bscp/go.mod
- name: go mod tidy check
uses: katexochen/go-tidy-check@v2
with:
modules: bcs-services/bcs-bscp
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --timeout=30m --issues-exit-code=0
working-directory: bcs-services/bcs-bscp