| 1 | name: Go Lint |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | pull_request: |
| 6 | paths-ignore: |
| 7 | - '**/*.md' |
| 8 | push: |
| 9 | branches: |
| 10 | - 'master' |
| 11 | |
| 12 | concurrency: |
| 13 | group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} |
| 14 | cancel-in-progress: true |
| 15 | |
| 16 | jobs: |
| 17 | go-lint: |
| 18 | if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch' |
| 19 | runs-on: ubuntu-latest |
| 20 | timeout-minutes: 10 |
| 21 | env: |
| 22 | TEST_DOCKER: 0 |
| 23 | TEST_FUSE: 0 |
| 24 | TEST_VERBOSE: 1 |
| 25 | GIT_PAGER: cat |
| 26 | IPFS_CHECK_RCMGR_DEFAULTS: 1 |
| 27 | defaults: |
| 28 | run: |
| 29 | shell: bash |
| 30 | steps: |
| 31 | - uses: actions/checkout@v6 |
| 32 | - uses: actions/setup-go@v6 |
| 33 | with: |
| 34 | go-version-file: 'go.mod' |
| 35 | - run: make -O test_go_lint |