github.com/gofiber/fiber/v2@v2.47.0/.github/workflows/linter.yml (about)

     1  # Adapted from https://github.com/golangci/golangci-lint-action/blob/b56f6f529003f1c81d4d759be6bd5f10bf9a0fa0/README.md#how-to-use
     2  
     3  name: golangci-lint
     4  on:
     5    push:
     6      branches:
     7        - master
     8        - main
     9    pull_request:
    10  permissions:
    11    contents: read
    12  jobs:
    13    golangci:
    14      name: lint
    15      runs-on: ubuntu-latest
    16      steps:
    17        - uses: actions/setup-go@v4
    18          with:
    19            # NOTE: Keep this in sync with the version from go.mod
    20            go-version: 1.20.x
    21        - uses: actions/checkout@v3
    22        - name: golangci-lint
    23          uses: golangci/golangci-lint-action@v3
    24          with:
    25            # NOTE: Keep this in sync with the version from .golangci.yml
    26            version: v1.51.0