Skip to content

Commit

Permalink
ci: fix golangci-lint (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jun 27, 2022
1 parent 89514c9 commit fe1ebe0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/lint.yaml
Expand Up @@ -7,12 +7,24 @@ on:
- master
- main
pull_request:

env:
GO_VERSION: '1.17'

jobs:
golangci:
name: lint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: '${{ env.GO_VERSION }}'
check-latest: true
id: go

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -23,10 +35,7 @@ jobs:
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: --timeout 180s --disable ineffassign
args: --timeout 180s

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the action will use pre-installed Go
# skip-go-installation: true

0 comments on commit fe1ebe0

Please sign in to comment.