Skip to content

Commit

Permalink
.github: move benchmark into build-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Jun 23, 2023
1 parent dc42187 commit 02d360d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/benchmark.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,31 @@ jobs:
input: "proto/internal"
against: "https://github.com/authzed/spicedb.git#branch=main,subdir=proto/internal"
buf_token: "${{ secrets.BUF_REGISTRY_TOKEN }}"
go-bench:
name: "Go Benchmark"
runs-on: ["self-hosted", "benchmarks"]
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@v3"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Benchmark"
run: "go run mage.go test:bench | tee benchmarks.txt"
- name: "Download previous benchmark data"
uses: "actions/cache@v1"
with:
path: "./cache"
key: "${{ runner.os }}-benchmark"
- uses: "benchmark-action/github-action-benchmark@v1"
with:
tool: "go"
output-file-path: "benchmarks.txt"
save-data-file: "${{ github.ref_name == 'main' }}"
external-data-json-path: "./cache/benchmark-data.json"
github-token: "${{ github.token }}"
auto-push: false
comment-on-alert: true
summary-always: true

0 comments on commit 02d360d

Please sign in to comment.