github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/.github/workflows/golangci-lint.yml (about) 1 name: golangci-lint 2 on: 3 push: 4 tags: 5 - '!v*' 6 branches: 7 - '*' 8 pull_request: 9 10 jobs: 11 golangci: 12 name: lint 13 runs-on: ubuntu-latest 14 steps: 15 - name: Checkout 16 uses: actions/checkout@v4 17 18 - name: Set up Go 19 uses: actions/setup-go@v4 20 with: 21 go-version-file: 'go.mod' 22 23 - name: golangci-lint 24 uses: golangci/golangci-lint-action@v3 25 env: 26 ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' 27 with: 28 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 29 version: latest 30 # Optional: show only new issues if it's a pull request. The default value is `false`. 31 only-new-issues: true