-
-
Notifications
You must be signed in to change notification settings - Fork 3
27 lines (26 loc) · 588 Bytes
/
lint.yaml
File metadata and controls
27 lines (26 loc) · 588 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
name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v6
with:
go-version: stable
- uses: actions/checkout@v6
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
args: --timeout=5m