Skip to content

Commit fd5f5f2

Browse files
committed
Add golangci-lint to CI
Signed-off-by: Austin Vazquez <[email protected]>
1 parent 59c4b53 commit fd5f5f2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,29 @@ on:
2020
- 'master'
2121
pull_request:
2222

23+
env:
24+
GO_VERSION: "1.22.8"
25+
2326
jobs:
27+
lint:
28+
runs-on: ubuntu-24.04
29+
timeout-minutes: 5
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version: ${{ env.GO_VERSION }}
36+
cache: false
37+
- name: Create go.mod
38+
run: |
39+
ln -s vendor.mod go.mod
40+
ln -s vendor.sum go.sum
41+
- uses: golangci/golangci-lint-action@v6
42+
with:
43+
version: v1.60.1
44+
skip-cache: true
45+
2446
test:
2547
runs-on: ubuntu-24.04
2648
timeout-minutes: 5

0 commit comments

Comments
 (0)