mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
fix: go get binary path
This commit is contained in:
parent
ba1342cbc3
commit
2d08747722
9
.github/workflows/go.yml
vendored
9
.github/workflows/go.yml
vendored
|
@ -44,18 +44,21 @@ jobs:
|
||||||
# auto-start: "false"
|
# auto-start: "false"
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
|
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
run: |
|
run: |
|
||||||
pip install pre-commit
|
pip install pre-commit
|
||||||
go get -v -u github.com/go-critic/go-critic/cmd/gocritic
|
|
||||||
pre-commit install-hooks
|
pre-commit install-hooks
|
||||||
pre-commit run markdownlint --files=README.md --verbose
|
pre-commit run markdownlint --files=README.md --verbose
|
||||||
pre-commit run go-fmt --all-files --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
|
- name: Install Migration Tool
|
||||||
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
||||||
|
|
|
@ -18,4 +18,3 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: go-fmt
|
- id: go-fmt
|
||||||
args: ['-l']
|
args: ['-l']
|
||||||
- id: go-critic
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user