summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
blob: 15c052d266db07e50501d0c5c7211300eb3379ef (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
on: [push, pull_request]
name: Lint

permissions:
  contents: read

jobs:
  golangci:
    name: lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v4
        with:
          go-version: '1.21'
          cache: false
      - name: Install PAM
        run: |
          sudo apt-get update
          sudo apt-get install -y libpam-dev
      - name: golangci-lint
        uses: golangci/golangci-lint-action@v3
        with:
          version: v1.54