Skip to content

Commit

Permalink
ci: Add E2E tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Brasileiro authored and Fabio Brasileiro committed Oct 9, 2024
1 parent cee4581 commit 6eaddba
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run E2E Tests

on: [pull_request]

jobs:
run-e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest

services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNAME: docker
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: apisolid

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'

- run: npm ci

- run: npm run test:e2e
env:
JWT_SECRET: testing
DATABASE_URL: "postgresql://docker:docker@localhost:5432/apisolid?schema=public"
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: 'npm'

- run: npm ci
Expand Down

0 comments on commit 6eaddba

Please sign in to comment.