-
Notifications
You must be signed in to change notification settings - Fork 175
43 lines (39 loc) · 1000 Bytes
/
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
name: Lint
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, labeled, ready_for_review]
branches:
- main
workflow_dispatch:
jobs:
lint:
strategy:
matrix:
go-version: ['1.23.x']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Install `golangci-lint`
uses: golangci/golangci-lint-action@v3
with:
# NOTE: See `lint-update-ci` target in Makefile.
version: v1.62.0
args: --timeout=30m
- name: Lint
run: |
export GOPATH="$(go env GOPATH)"
make lint
TAGS=statsd make lint
TAGS="statsd nethttp ht debug" make lint
TAGS="aws gcp azure" make lint
make fmt-check
make spell-check