aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
blob: 607432a1a5bba5808bf6ab3305e445e11ee441c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Lint
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-go@v3
      with:
        go-version: 1.20.x
    - run: go version
    - run: diff -u <(echo -n) <(gofmt -d .)
    - name: Run golangci-lint
      uses: golangci/golangci-lint-action@v3
      with:
        version: v1.51.1
        args: --enable=nolintlint,gochecknoinits,bodyclose --verbose