fix: azure CA选机型开放 2c 和 4G 的机器 (#3595) #3697
This file contains 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-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 --skip-dirs=test --skip-dirs=pkg/logs/glog --out-format=colored-line-number | |
working-directory: bcs-services/bcs-bscp | |
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 ./... |