mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix: split golangci-lint to separate file
This commit is contained in:
parent
2d08747722
commit
933c90e805
5
.github/workflows/go.yml
vendored
5
.github/workflows/go.yml
vendored
|
@ -55,11 +55,6 @@ jobs:
|
||||||
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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
|
22
.github/workflows/golang-lint.yml
vendored
Normal file
22
.github/workflows/golang-lint.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: golang-lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
golangci:
|
||||||
|
name: lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.18
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v3
|
||||||
|
with:
|
||||||
|
version: v1.46.2
|
Loading…
Reference in New Issue
Block a user