Skip to content

Commit 853a50f

Browse files
committed
ci: lint
Signed-off-by: Matt Gleich <[email protected]>
1 parent d173556 commit 853a50f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: lint
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
golangci-lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version: '1.22.5'
15+
- uses: golangci/golangci-lint-action@v6
16+
with:
17+
version: v1.59
18+
gomod:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.22.5'
25+
- run: |
26+
go mod tidy
27+
git diff --exit-code go.mod
28+
git diff --exit-code go.sum

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
[![build](https://github.com/gleich/lcp-v2/actions/workflows/build.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/build.yml)
44
[![deploy](https://github.com/gleich/lcp-v2/actions/workflows/deploy.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/deploy.yml)
5+
[![lint](https://github.com/gleich/lcp-v2/actions/workflows/lint.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/lint.yml)
56

67
Lightweight Cache Proxy Service. Powers [mattglei.ch](https://mattglei.ch). Checkout V1 written in rust: [gleich/lcp](https://github.com/gleich/lcp)

0 commit comments

Comments
 (0)