Skip to content

test: add benchmark GitHub workflow #3

test: add benchmark GitHub workflow

test: add benchmark GitHub workflow #3

Workflow file for this run

name: Benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run benchmarks
runs-on: ubuntu-latest-16-cores
services:
postgres:
image: postgres:12.1-alpine
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build
uses: ./.github/actions/build
- name: Install end-to-end testing dependencies
working-directory: ./e2e
run: pnpm install
- name: Clean end-to-end project
working-directory: ./e2e
run: pnpm run clean
- name: Build end-to-end project
working-directory: ./e2e
run: pnpm run build
- name: Generate test data
working-directory: ./e2e
run: pnpm run generate-test-data-records
- name: Run benchmarks
run: pnpm run bench --silent