-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1002 Bytes
/
tests-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Run E2E Tests
on: [push]
jobs:
run-e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
DATABASE_USER: postgres
DATABASE_PASS: 1234
DATABASE_HOST: localhost
DATABASE_PORT: 5432
DATABASE_NAME: findafriend
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: docker compose up --detach
- run: docker container ls
- run: npm ci
- run: npm run test:e2e
env:
JWT_SECRET: testing
DATABASE_URL: "postgresql://postgres:[email protected]:5432/findafriend?schema=public"