Skip to content

Commit f40d56a

Browse files
committed
lint: add make and CI action
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
1 parent d77e34b commit f40d56a

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"

.github/workflows/review.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Review
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
lint:
9+
name: lint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: v1.17
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Run linter
19+
run: make lint
20+
spell-check:
21+
name: spell-check
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: reviewdog/action-misspell@v1
26+
with:
27+
reporter: github-pr-review
28+
github_token: ${{ secrets.github_token }}
29+
locale: "US"

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ test:
88
go test ./... -race
99
.PHONY: test
1010

11+
GOLANGCI_LINT=go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
12+
lint:
13+
$(GOLANGCI_LINT) run
14+
.PHONY: lint
15+

0 commit comments

Comments
 (0)