-
Notifications
You must be signed in to change notification settings - Fork 701
49 lines (43 loc) · 1.07 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
name: golangci-lint
on:
push:
paths-ignore:
- "website/**"
branches:
- "master"
pull_request:
paths-ignore:
- "website/**"
branches:
- "master"
jobs:
lint:
name: Lint
strategy:
fail-fast: true
matrix:
go: ["1.19.x"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: golangci-lint
if: runner.os != 'Windows'
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.50.1
args: "--out-${NO_FUTURE}format colored-line-number"
- name: golangci-lint
if: runner.os == 'Windows'
uses: golangci/golangci-lint-action@v3.7.0
env:
nofuture: out-format
with:
version: v1.50.1
args: "--%nofuture% colored-line-number"