Skip to content

Commit ff60beb

Browse files
Merge pull request #168 from basecamp/ci-lint
Run the lint stage in CI
2 parents 596968a + 1c9ccd9 commit ff60beb

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ jobs:
2121
with:
2222
go-version-file: go.mod
2323

24+
- name: Install golangci-lint
25+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
26+
with:
27+
version: latest
28+
2429
- name: Install dependencies
2530
run: go mod download
2631

2732
- name: Build
28-
run: go build -v ./...
33+
run: make build
2934

3035
- name: Test
31-
run: go test -v ./...
36+
run: make test
37+
38+
- name: Lint
39+
run: make lint

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ build:
66
test:
77
go test ./...
88

9+
lint:
10+
golangci-lint run
11+
912
bench:
1013
go test -bench=. -benchmem -run=^# ./...
1114

1215
docker:
1316
docker build -t kamal-proxy .
14-

0 commit comments

Comments
 (0)