perf: reduce GC pressure on hot paths (~30% CPU on busy gateway pods)… #1497
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: PATH Lint and Unit Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| run-linter: | |
| name: Run linter | |
| runs-on: "ubuntu-22.04" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup Git Authentication | |
| run: | | |
| git config --global url."https://${{ github.token }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.11 | |
| args: --timeout 20m --verbose | |
| run-unit-tests: | |
| name: Run unit tests | |
| runs-on: "ubuntu-22.04" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Setup Git Authentication | |
| run: | | |
| git config --global url."https://${{ github.token }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" | |
| - name: Run unit tests without CGO | |
| run: CGO_ENABLED=0 go test ./... -short | |
| - name: Run unit tests with CGO | |
| run: CGO_ENABLED=1 go test -tags "ethereum_secp256k1" ./... -short |