txpool: add more cases to return err instead of panicking on invalid … #5856
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 | |
- 'release/**' | |
pull_request: | |
branches: | |
- main | |
- 'release/**' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
workflow_dispatch: | |
jobs: | |
lint: | |
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Install golangci-lint | |
if: runner.os == 'Linux' | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.63.4 | |
skip-cache: true | |
- name: Lint | |
if: runner.os == 'Linux' | |
run: make lint |