github.com/Finschia/finschia-sdk@v0.48.1/.github/workflows/lint.yml (about)

     1  name: Lint
     2  # Lint runs golangci-lint over the entire cosmos-sdk repository
     3  # This workflow is run on every pull request and push to main
     4  # The `golangci` will pass without running if no *.{go, mod, sum} files have been changed.
     5  env:
     6    GOPRIVATE: "github.com/Finschia/*"
     7  on:
     8    pull_request:
     9    push:
    10      branches:
    11        - main
    12        - rc*/*
    13        - release/*
    14  jobs:
    15    golangci:
    16      name: golangci-lint
    17      runs-on: ubuntu-latest
    18      timeout-minutes: 6
    19      steps:
    20        - uses: actions/setup-go@v4.0.1
    21          with:
    22            go-version: '1.20'
    23        - uses: actions/checkout@v3
    24        - uses: technote-space/get-diff-action@v6.1.2
    25          with:
    26            PATTERNS: |
    27              **/**.go
    28              go.mod
    29              go.sum
    30        - uses: golangci/golangci-lint-action@v3
    31          with:
    32            # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
    33            version: v1.51
    34            args: --timeout 10m
    35            github-token: ${{ secrets.GITHUB_TOKEN }}
    36          if: env.GIT_DIFF