github.com/polygon-io/client-go@v1.16.4/.github/workflows/lint.yml (about)

     1  name: lint
     2  on:
     3    push:
     4      tags:
     5        - v*
     6      branches:
     7        - master
     8    pull_request:
     9  permissions:
    10    contents: read
    11  jobs:
    12    golangci:
    13      strategy:
    14        matrix:
    15          os: [ubuntu-latest]
    16          go-version: [1.21.x]
    17      name: golangci-lint
    18      runs-on: ${{ matrix.os }}
    19      steps:
    20        - uses: actions/setup-go@v4
    21          with:
    22            go-version: ${{ matrix.go-version }}
    23        - uses: actions/checkout@v4
    24        - name: golangci-lint
    25          uses: golangci/golangci-lint-action@v3
    26          with:
    27            version: v1.54
    28        - name: gofmt
    29          run: |
    30            go fmt ./...
    31            git diff --exit-code