fix: split golangci-lint to separate file

This commit is contained in:
zenix 2022-06-17 17:12:58 +09:00
parent 2d08747722
commit 933c90e805
2 changed files with 22 additions and 5 deletions

View File

@ -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
View 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