Merge pull request #221 from evrardjp/lint-job

Add Lint job in github actions
This commit is contained in:
Daniel Holbach
2020-11-09 13:22:26 +01:00
committed by GitHub

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/...'