Add lint job

In the past, we had lint issues which were merged into the code,
and/or lint changed without us adapting our code.

This should allow us to stay on top of linting issue by
highlighting them in PRs.
This commit is contained in:
Jean-Philippe Evrard
2020-11-05 10:27:40 +01:00
parent 7461ab8d95
commit 2e5ea66e91

16
.github/workflows/go-lint.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: "Go lint"
on: [pull_request, push]
jobs:
code-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Lint cmd folder
uses: Jerome1337/golint-action@v1.0.2
with:
golint-path: './cmd/...'
- name: Lint pkg folder
uses: Jerome1337/golint-action@v1.0.2
with:
golint-path: './pkg/...'