Skip to content

Commit

Permalink
use golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yseto committed Aug 30, 2022
1 parent b8e146e commit 94024a7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -11,6 +11,14 @@ on:
env:
DEBIAN_FRONTEND: noninteractive
jobs:
lint:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
test:
strategy:
matrix:
Expand Down Expand Up @@ -39,6 +47,14 @@ jobs:
path-to-profile: .profile.cov
parallel: true
flag-name: Go-${{ matrix.os }}-${{ matrix.go }}
finish:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
build:
needs: [test]
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .golangci.yml
@@ -0,0 +1,22 @@
linters:
# Detected a number of cases that could not be handled after the switchover,
# TODO remove this rule.
disable:
- gosimple
- errcheck
- ineffassign
linters-settings:
govet:
# enable-all: true
disable:
# Detected a number of cases that could not be handled after the switchover,
# TODO remove this rule.
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosimple
- staticcheck
- ineffassign

0 comments on commit 94024a7

Please sign in to comment.