Skip to content

feat: add performance test #1

feat: add performance test

feat: add performance test #1

name: Performance Tests
on:
push:
branches:
- main
pull_request:
branches: [main]
jobs:
test:
name: Performance Tests
runs-on: ubuntu-latest
services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: modular-pets
steps:
- uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.38
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Install K6
run: sudo apt-get update && sudo apt-get install -y k6
- name: Run Performance Tests
run: bun run ci:test:performance
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/modular-pets"