Skip to content

Commit

Permalink
chore: enable linter (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Oct 3, 2023
1 parent 92111a4 commit 095282b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflow/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint

permissions: {}

on:
push:
branches:
- '*'
pull_request:
branches:
- 'main'
- 'release*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
version: v1.54.2
skip-cache: true
- name: go fmt check
run: make fmt-check
- name: goimports check
run: make imports-check
- name: Checking unused pkgs using go mod tidy
run: make unused-package-check
- name: Go vet
run: make vet

0 comments on commit 095282b

Please sign in to comment.