Merge pull request #560 from tj-actions/upgrade-to-v3.5.0 #983
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: Lint | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
paths: | |
- '**.go' | |
- '**.mod' | |
- 'Makefile' | |
- '.github/workflows/lint.yml' | |
branches: | |
- 'main' | |
jobs: | |
cleanup-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rokroskar/workflow-run-cleanup-action@v0.3.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
golangci-lint: | |
name: golangci lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
with: | |
go-version-file: 'go.mod' |