aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
blob: 06472d7288cdceed52114f3911b9f91b9e9a3bcd (plain)
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
name: Lint
on:
  push:
    branches:
      - master
  pull_request:

permissions:
  # Required: allow read access to the content for analysis.
  contents: read
  # Optional: allow read access to pull request. Use with `only-new-issues` option.
  pull-requests: read
  # Optional: Allow write access to checks to allow the action to annotate code in the PR.
  checks: write

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-go@v5
      with:
        go-version: 1.20.x
    - run: go version
    - name: Run golangci-lint
      uses: golangci/golangci-lint-action@v5
      with:
        version: v1.56.2
        args: --verbose