-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 894 Bytes
/
linting.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
name: Linter
on:
workflow_dispatch:
push:
branches:
- "**"
pull_request:
types: [opened, reopened]
jobs:
golangci-lint:
strategy:
matrix:
go-version: [1.23.x]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Must be specified without patch version: we always use the latest patch version.
version: v1.60
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true