github.com/cozy/cozy-stack@v0.0.0-20240327093429-939e4a21320e/.github/workflows/go-lint.yml (about)

     1  name: Lint go
     2  on:
     3    push:
     4      branches:
     5        - master
     6      paths:
     7        - '.golangci.yaml'
     8        - 'Makefile'
     9        - '**.go'
    10    pull_request:
    11      paths:
    12        - '.golangci.yaml'
    13        - 'Makefile'
    14        - '**.go'
    15  permissions:
    16    contents: read
    17  jobs:
    18    golangci:
    19      name: lint
    20      runs-on: ubuntu-22.04
    21      steps:
    22        - uses: actions/setup-go@v5
    23          with:
    24            go-version: "1.22.x"
    25        - uses: actions/checkout@v4
    26        - name: golangci-lint
    27          uses: golangci/golangci-lint-action@v4
    28          with:
    29            # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
    30            version: latest