尝试修复lint

This commit is contained in:
fumiama 2021-08-27 16:14:10 +08:00
parent f3184bc08d
commit b5666ef48e
2 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,9 @@ name: PullLint
on: [pull_request]
jobs:
golangci:
strategy:
matrix:
go-version: [1.17.x]
name: lint
runs-on: ubuntu-latest
steps:
@ -10,7 +13,7 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.17
version: latest
# Optional: working directory, useful for monorepos
# working-directory: somedir

View File

@ -2,6 +2,9 @@ name: PushLint
on: [push]
jobs:
golangci:
strategy:
matrix:
go-version: [1.17.x]
name: lint_golangci-lint
runs-on: ubuntu-latest
steps:
@ -9,7 +12,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.17
version: latest
args: --issues-exit-code=0
- name: Commit back
continue-on-error: true