Skip to content

Commit

Permalink
ci(lint) : setup golangci-lint-action (#256)
Browse files Browse the repository at this point in the history
* build(lint): setup golangci-lint-action

Signed-off-by: Matthieu MOREL <[email protected]>

* skip go installation

Co-authored-by: knqyf263 <[email protected]>
  • Loading branch information
mmorel-35 and knqyf263 authored Nov 29, 2021
1 parent 254e928 commit 01fd3bd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ on:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.43
args : --verbose
skip-go-installation: true
unittest:
name: Unit Test
runs-on: ubuntu-latest
Expand All @@ -22,7 +38,6 @@ jobs:
run: sudo apt-get update && sudo apt-get install libdb-dev
- name: Run unit tests
run: make test

integration:
name: Integration Test
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
run:
timeout: 5m
linters:
disable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- unused

0 comments on commit 01fd3bd

Please sign in to comment.