perf: reduce allocations in NewV3 and NewV5 (#221) #352
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: Go | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build + Test Stable | |
| runs-on: ubuntu-latest | |
| env: | |
| GO111MODULE: auto | |
| steps: | |
| - name: Build | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: '1.22.x' | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic | |
| - name: Coverage | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| build-legacy: | |
| name: Build + Test Previous Stable | |
| runs-on: ubuntu-latest | |
| env: | |
| GO111MODULE: auto | |
| steps: | |
| - name: Build | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: '1.21.x' | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test ./... |