mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
尝试修复lint
This commit is contained in:
parent
f3184bc08d
commit
b5666ef48e
5
.github/workflows/pull.yml
vendored
5
.github/workflows/pull.yml
vendored
@ -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
|
||||
|
||||
5
.github/workflows/push.yml
vendored
5
.github/workflows/push.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user