Skip to content

Commit

Permalink
Create test DB in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait committed Nov 13, 2024
1 parent 2850fae commit c8792a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
- name: Server / Write .env
if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx reset:env twenty-server
- name: Server / Create DB
run: PGPASSWORD=twenty psql -h localhost -p 5432 -U twenty -d postgres -c "SELECT 'CREATE DATABASE test' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'test')"
- name: Worker / Run
if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx run twenty-server:worker:ci
Expand Down

0 comments on commit c8792a2

Please sign in to comment.