Skip to content

Commit

Permalink
Adding lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
mnorbury committed Oct 17, 2023
1 parent 75add15 commit 969a6a2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint_golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
golangci:
name: Lint with GolangCI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
test:
go test -tags=assert -race ./...

.PHONY: lint
lint:
golangci-lint run

0 comments on commit 969a6a2

Please sign in to comment.