fix: Show help menu when missing arg in lstn ci
#544
Workflow file for this run
This file contains 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: linting | |
on: | |
push: | |
paths: | |
- "**.go" | |
- go.mod | |
- go.sum | |
branches: ["main"] | |
pull_request: | |
paths: | |
- "**.go" | |
- go.mod | |
- go.sum | |
branches: ["main"] | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
lint: | |
name: "go" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
check-latest: true | |
- name: Verify the dependencies | |
run: | | |
go mod verify | |
go mod download | |
- name: Lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.57.1 | |
args: --timeout 20m0s --verbose --out-${IGNORE_FUTURE_WARNINGS}format tab | |
only-new-issues: true # Show only new issues on pull requests | |
# Disable caching as a workaround for https://github.com/golangci/golangci-lint-action/issues/135. | |
# The line can be removed once the golangci-lint issue is resolved. | |
skip-pkg-cache: true |