Lint #683
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: Lint | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
golangci: | |
# We need to run the linter on the same image we use for building, since it | |
# needs the C libraries installed for the dependencies to typecheck. | |
runs-on: ubuntu-latest | |
container: cometbft/cometbft-db-testing | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo "GO_VERSION=$(cat .github/workflows/go-version.env | grep GO_VERSION | cut -d '=' -f2)" >> $GITHUB_ENV | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: golangci/[email protected] | |
with: | |
args: --timeout 10m | |
version: latest | |
github-token: ${{ secrets.github_token }} |