summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
blob: 771e735f0d0925561fb7cfd2431b6887e67dca12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 install -y libpam-dev
      - name: golangci-lint
        uses: golangci/golangci-lint-action@v3
        with:
          version: v1.54