feat: add performance test #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |