fix: go get binary path

This commit is contained in:
zenix 2022-06-17 16:23:12 +09:00
parent ba1342cbc3
commit 2d08747722
2 changed files with 6 additions and 4 deletions

View File

@ -44,18 +44,21 @@ jobs:
# auto-start: "false"
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Run pre-commit
run: |
pip install pre-commit
go get -v -u github.com/go-critic/go-critic/cmd/gocritic
pre-commit install-hooks
pre-commit run markdownlint --files=README.md --verbose
pre-commit run go-fmt --all-files --verbose
pre-commit run go-critic --all-files --verbose
- name: CI Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.2
- name: Install Migration Tool
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1

View File

@ -18,4 +18,3 @@ repos:
hooks:
- id: go-fmt
args: ['-l']
- id: go-critic