fix: cluster-resource shared cluster ns (merge request !2365) #4304
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.61.0 | |
args: --timeout=30m | |
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.61.0 | |
args: --timeout=30m | |
working-directory: bcs-services/bcs-monitor | |
bcs-cluster-manager: | |
name: bcs-cluster-manager | |
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-cluster-manager/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-services/bcs-cluster-manager | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout=30m | |
working-directory: bcs-services/bcs-cluster-manager | |
bcs-helm-manager: | |
name: bcs-helm-manager | |
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-helm-manager/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-services/bcs-helm-manager | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout=30m | |
working-directory: bcs-services/bcs-helm-manager | |
bcs-project-manager: | |
name: bcs-project-manager | |
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-project-manager/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-services/bcs-project-manager | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.61.0 | |
args: --timeout=30m --out-format=colored-line-number | |
working-directory: bcs-services/bcs-project-manager | |
bcs-user-manager: | |
name: bcs-user-manager | |
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-user-manager/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-services/bcs-user-manager | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout=30m --out-format=colored-line-number | |
working-directory: bcs-services/bcs-user-manager | |
bcs-cluster-resources: | |
name: bcs-cluster-resources | |
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/cluster-resources/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-services/cluster-resources | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.61.0 | |
args: --timeout=30m | |
working-directory: bcs-services/cluster-resources | |
bcs-task: | |
name: bcs-task | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: bcs-common/common/task/go.mod | |
- name: go mod tidy check | |
uses: katexochen/go-tidy-check@v2 | |
with: | |
modules: bcs-common/common/task | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.61.0 | |
args: --timeout=30m | |
working-directory: bcs-common/common/task | |
- name: Test | |
run: cd bcs-common/common/task && go test -cover ./... |