Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DB_HOST=localhost
DB_DATABASE_NAME=sos_rs_test
DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE_NAME}?schema=public"
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,24 @@ on:
branches:
- main
- develop
- staging

jobs:
build:
runs-on: ubuntu-latest
services:
db:
image: postgres:16.3
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
# Check out the source
Expand All @@ -36,6 +50,7 @@ jobs:
# Build App
- name: Build App
run: npm run build

- name: Test
run: npm test
- name: Test e2e
run: npm run test:e2e
Loading