fix wrong golangci-lint flag #46
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: Terrafrom Basic Test Process | |
on: | |
push: | |
paths: | |
- .github/workflows/acctest-terraform-basic.yml | |
- alicloud/*.go | |
branches: | |
- master | |
pull_request: | |
paths: | |
- .github/workflows/acctest-terraform-basic.yml | |
- alicloud/*.go | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go Version | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.19.3' | |
- name: Get dependencies | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
go mod tidy | |
- name: fmtcheck | |
run: | | |
make fmtcheck | |
- name: importscheck | |
run: | | |
make importscheck | |
- name: vet | |
run: | | |
make vet | |
# - name: test | |
# run: | | |
# make test | |
Field-Check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '3' | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.19.3' | |
- name: grant permissions | |
run: | | |
chmod +rwx scripts/field_check.sh | |
- name: Field Check | |
run: | | |
sudo bash scripts/field_check.sh |