-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.27 KB
/
lint.yml
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
name: lint
on:
- push
- pull_request
jobs:
golangci:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.22
id: go
- name: Run Golangci Linter
uses: golangci/golangci-lint-action@v3
with:
version: latest
gomod:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
env:
GO111MODULE: off
with:
go-version: 1.22
id: go
- 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@v5
with:
version: latest
args: check