github.com/Finschia/ostracon@v1.1.5/.github/workflows/lint.yml (about) 1 name: Golang Linter 2 # Lint runs golangci-lint over the entire Ostracon repository. 3 # 4 # This workflow is run on every pull request and push to main. 5 # 6 # The `golangci` job will pass without running if no *.{go, mod, sum} 7 # files have been modified. 8 # 9 # To run this locally, simply run `make lint` from the root of the repo. 10 11 on: 12 pull_request: 13 push: 14 jobs: 15 golangci: 16 name: golangci-lint 17 runs-on: ubuntu-latest 18 timeout-minutes: 8 19 steps: 20 - uses: actions/setup-go@v4 21 with: 22 go-version: '1.20' 23 - uses: actions/checkout@v4 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.7.0 31 with: 32 version: latest 33 args: --timeout 10m 34 github-token: ${{ secrets.github_token }} 35 if: env.GIT_DIFF