Skip to content

Commit

Permalink
ci: add e2e step
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Jan 21, 2025
1 parent 37e4a68 commit b2ebcc0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ jobs:
matrix:
node-version: [ '18.x', '20.x', '22.x' ]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: db-test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -33,3 +47,11 @@ jobs:
run: npm run build
- name: Unit Tests
run: npm run test
- name: E2E Tests
run: npm run test:e2e
env:
DATABASE_NAME: db-test
DATABASE_HOST: 127.0.0.1
DATABASE_PORT: 15432
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres

0 comments on commit b2ebcc0

Please sign in to comment.