✨ v3 (feature): client refactor #2118
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
on: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!**.md' | |
pull_request: | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!**.md' | |
name: Benchmark | |
jobs: | |
Compare: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: Fetch Repository | |
uses: actions/checkout@v3 | |
- name: Run Benchmark | |
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt | |
- name: Get Previous Benchmark Results | |
uses: actions/cache@v3 | |
with: | |
path: ./cache | |
# TODO: reactivate it later -> when v3 is the stable one | |
key: ${{ runner.os }}-benchmark-v3 | |
- name: Save Benchmark Results | |
uses: benchmark-action/[email protected] | |
with: | |
tool: 'go' | |
output-file-path: output.txt | |
github-token: ${{ secrets.BENCHMARK_TOKEN }} | |
benchmark-data-dir-path: 'benchmarks' | |
fail-on-alert: true | |
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
# Enable Job Summary for PRs - deactivated because of issues | |
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }} | |
# TODO: reactivate it later -> when v3 is the stable one | |
#auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
auto-push: false | |
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} |