mirror of
https://github.com/kubereboot/kured.git
synced 2026-03-05 10:20:29 +00:00
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:
16
.github/workflows/go-lint.yaml
vendored
Normal file
16
.github/workflows/go-lint.yaml
vendored
Normal 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/...'
|
||||
Reference in New Issue
Block a user