fix: change checkout out of colangci-lint
Some checks failed
Go CI Pipeline / ci (push) Failing after 15s
Some checks failed
Go CI Pipeline / ci (push) Failing after 15s
This commit is contained in:
parent
43deb72b2d
commit
63c0b0c953
1 changed files with 6 additions and 9 deletions
|
|
@ -18,15 +18,12 @@ jobs:
|
|||
- name: Get dependencies
|
||||
run: go mod tidy
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v2-latest
|
||||
|
||||
# - name: Lint code
|
||||
# run: |
|
||||
# go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
# golangci-lint run
|
||||
- name: Install golangci-lint
|
||||
run: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.12.0
|
||||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||
- name: Run golangci-lint
|
||||
run: golangci-lint run
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue