-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (35 loc) · 901 Bytes
/
lint.yml
File metadata and controls
35 lines (35 loc) · 901 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
on:
push:
tags:
- v*
branches:
- main
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
name: Lint
jobs:
golint:
name: Go Lint
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Run Golint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --config=.github/linters/.golangci.yml
only-new-issues: true