-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (38 loc) · 862 Bytes
/
lint.yml
File metadata and controls
42 lines (38 loc) · 862 Bytes
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
name: "Lint"
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**.go"
- go.mod
- go.sum
- .github/workflows/lint.yml
merge_group:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- "**.go"
- go.mod
- go.sum
- .github/workflows/lint.yml
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8