Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 committed Apr 19, 2024
1 parent 88acd1b commit a76b20e
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Benchmarks Workflow

on:
push:
branches:
- benchmarks-ci
# pull_request:
# branches:
# - main

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Build & Start Services
run: |
docker-compose -f docker-compose.full.yml up -d --build
- name: Wait for DB to be ready
uses: vishnudxb/wait-for-port@v1
with:
host: localhost
port: 5432

- name: Install dependencies
run: |
poetry install
- name: Run Database Migrations
run: |
poetry run prisma migrate dev --name updates
- name: Populate Database
run: |
./run populate-db
- name: Run Tests
run: |
./run benchmark
- name: Clean up
if: always()
run: |
docker-compose -f docker-compose.full.yml down
env:
DB_USER: ${{ secrets.DB_USER }}
DB_PASS: ${{ secrets.DB_PASS }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_PORT: 5432
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
RUN_ENV: ci
PORT: 8080

0 comments on commit a76b20e

Please sign in to comment.