Skip to content

Commit bec9e97

Browse files
Merge pull request #16 from DevAnseSenior/e2e
ci: add e2e tests workflow
2 parents b575c6a + ba76485 commit bec9e97

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run E2E Tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run-e2e-tests:
7+
name: Run E2E Tests
8+
runs-on: ubuntu-latest
9+
10+
services:
11+
postgres:
12+
image: bitnami/postgresql
13+
ports:
14+
- 5432:5432
15+
environment:
16+
- POSTGRESQL_USERNAME=docker
17+
- POSTGRESQL_PASSWORD=docker
18+
- POSTGRESQL_DATABASE=gogymapi
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
cache: 'npm'
27+
28+
- run: npm ci
29+
30+
- run: npm run test:e2e
31+
env:
32+
JWT_SECRET: testing
33+
DATABASE_URL: "postgres://docker:docker@localhost:5432/gogymapi?schema=public"

0 commit comments

Comments
 (0)