Skip to content

Commit

Permalink
update CI to reflect how the benchmarks will be used
Browse files Browse the repository at this point in the history
  • Loading branch information
MadVikingGod committed Sep 26, 2023
1 parent 27436d8 commit 0cdfff8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: Benchmark
on:
push:
branches:
- main
tags:
- v1.*
workflow_dispatch:

env:
DEFAULT_GO_VERSION: "~1.21.1"
jobs:
benchmark:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 15
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
run: make benchmark | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v3
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ jobs:
run: make build
- name: Check clean repository
run: make check-clean-work-tree
test-bench:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
cache-dependency-path: "**/go.sum"
- name: Run benchmarks to check functionality
run: make test-bench

test-race:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0cdfff8

Please sign in to comment.