Skip to content

test: add benchmark GitHub workflow #1

test: add benchmark GitHub workflow

test: add benchmark GitHub workflow #1

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run tests
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: Generate test data
working-directory: ./e2e
run: pnpm run generate-test-data-records
- name: Run benchmarks
run: pnpm run bench