Skip to content

Commit

Permalink
ci: Add linter stage to workflow
Browse files Browse the repository at this point in the history
Ensure that submitted merge requests are run through a linter check to keep
high code quality.

Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc committed Jul 26, 2023
1 parent 1ea5f88 commit 0c372e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ on:
workflow_dispatch:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

test:
strategy:
fail-fast: false
Expand Down
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
linters:
enable:
- gofmt
- stylecheck
- whitespace

0 comments on commit 0c372e9

Please sign in to comment.