Kill the ansible-playbook process when an execution times out #2600
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: Golang Lint | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Lint all go files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Set up Go | |
| uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install golangci-lint | |
| run: GOBIN=$(go env GOPATH)/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2 | |
| - name: Clean Env | |
| run: $(go env GOPATH)/bin/golangci-lint cache clean | |
| - name: Print linter version | |
| run: $(go env GOPATH)/bin/golangci-lint --version | |
| - name: Run golangci-lint | |
| run: $(go env GOPATH)/bin/golangci-lint run ./go/... --timeout 5m |