- Pinned go minor version to prevent errant win build with versio…
#933
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - version* | |
| tags: | |
| - lint* | |
| - build* | |
| pull_request: | |
| env: | |
| GOLANGCI_LINT_VERSION: ${{ vars.GOLANGCI_LINT_VERSION == '' && 'v1.59.1' || vars.GOLANGCI_LINT_VERSION }} | |
| DEFAULT_STEP_TIMEOUT: ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && '20' || vars.DEFAULT_STEP_TIMEOUT_MIN }} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Go environment | |
| uses: actions/[email protected] | |
| with: | |
| go-version: '1.22.0' | |
| cache: false | |
| - name: Check workflow files | |
| uses: docker://rhysd/actionlint:1.6.23 | |
| with: | |
| args: -color | |
| - name: Run golangci-lint | |
| uses: golangci/[email protected] | |
| with: | |
| version: ${{ env.GOLANGCI_LINT_VERSION }} | |
| args: --timeout ${{ env.DEFAULT_STEP_TIMEOUT }}m |