Update go version to v1.21.3/1.20.10 for CI (#4607) #661
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: Benchmark | |
on: | |
push: | |
branches: | |
- main | |
env: | |
DEFAULT_GO_VERSION: "~1.21.3" | |
jobs: | |
benchmark: | |
name: Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.DEFAULT_GO_VERSION }} | |
- name: Run benchmarks | |
run: make test-bench | tee output.txt | |
- name: Download previous benchmark data | |
uses: actions/cache@v3 | |
with: | |
path: ./benchmarks | |
key: ${{ runner.os }}-benchmark | |
- name: Store benchmarks result | |
uses: benchmark-action/[email protected] | |
with: | |
name: Benchmarks | |
tool: 'go' | |
output-file-path: output.txt | |
external-data-json-path: ./benchmarks/data.json | |
auto-push: false | |
fail-on-alert: false | |
alert-threshold: "400%" |