This repository was archived by the owner on Mar 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (54 loc) · 1.32 KB
/
lint.yml
File metadata and controls
63 lines (54 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: lint
on:
- push
- pull_request
jobs:
golangci:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
check-latest: true
- name: Run Golangci Linter
uses: golangci/golangci-lint-action@v6
with:
version: latest
install-mode: goinstall
args: --timeout=5m
gomod:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
check-latest: true
- name: Checkout Repository
uses: actions/checkout@v4
- run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Linting docker/Dockerfile
uses: brpaz/hadolint-action@master
with:
dockerfile: 'Dockerfile'
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Run Check
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: check