Skip to content

Persist benchmark results in CI #21

Persist benchmark results in CI

Persist benchmark results in CI #21

Workflow file for this run

name: Benchmark
on:
# For testing, remove before merge
pull_request:
push:
branches:
- main
permissions:
contents: read
packages: read
jobs:
benchmark:
name: 'benchmark (pg: ${{ matrix.pgVersion }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pgVersion: ['14.8', '15.3', '16.4', '17.0' ,'latest']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run benchmarks
id: run_benchmarks
run: make bench
env:
POSTGRES_VERSION: ${{ matrix.pgVersion }}
persist_results:
runs-on: ubuntu-latest
needs: [benchmark]
steps:
- run: echo '${{ toJSON(needs.benchmark.outputs) }}'