golangci-lint #67
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: golangci-lint | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| schedule: | |
| - cron: "23 6 * * 1" | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| path: common | |
| # Sibling checkout (proto) — common itself is the repo under test, so | |
| # only proto is fetched as a sibling for the replace directive. | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: InstaNode-dev/proto | |
| path: proto | |
| continue-on-error: true | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: common/go.mod | |
| - uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| working-directory: common | |
| args: --timeout=5m |