From 933c90e805c854514507127bf295d07207432ec6 Mon Sep 17 00:00:00 2001 From: zenix Date: Fri, 17 Jun 2022 17:12:58 +0900 Subject: [PATCH] fix: split golangci-lint to separate file --- .github/workflows/go.yml | 5 ----- .github/workflows/golang-lint.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/golang-lint.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7c9991020..2af2b1632 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -55,11 +55,6 @@ jobs: pre-commit run markdownlint --files=README.md --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 run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1 diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml new file mode 100644 index 000000000..420724cb7 --- /dev/null +++ b/.github/workflows/golang-lint.yml @@ -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