File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 26
26
server-test :
27
27
needs : postgres-job
28
28
runs-on : ubuntu-latest
29
+ env :
30
+ PG_DATABASE_URL : postgres://postgres:postgrespassword@postgres:5432/test?connection_limit=1
29
31
steps :
30
32
- uses : actions/checkout@v3
31
33
if : github.event_name == 'push'
48
50
cd server && yarn test
49
51
- name : Server / Run e2e tests
50
52
run : |
51
- cd server && yarn test:e2e
53
+ cd server && yarn test:e2e-ci
Original file line number Diff line number Diff line change 2
2
CREATE DATABASE "default ";
3
3
4
4
-- Create the tests database for e2e testing
5
- CREATE DATABASE "tests ";
5
+ CREATE DATABASE "test ";
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ REFRESH_TOKEN_EXPIRES_IN=30d
7
7
LOGIN_TOKEN_SECRET = secret_login_token
8
8
LOGIN_TOKEN_EXPIRES_IN = 15m
9
9
FRONT_AUTH_CALLBACK_URL = http://localhost:3001/auth/callback
10
- PG_DATABASE_URL = postgres://postgres:postgrespassword@localhost:5432/tests ?connection_limit=1
10
+ PG_DATABASE_URL = postgres://postgres:postgrespassword@localhost:5432/test ?connection_limit=1
11
11
STORAGE_TYPE = local
12
12
STORAGE_LOCAL_PATH = .local-storage
Original file line number Diff line number Diff line change 18
18
"test:watch" : " jest --watch" ,
19
19
"test:cov" : " jest --coverage" ,
20
20
"test:debug" : " node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand" ,
21
- "test:e2e" : " ./scripts/run-integration.sh" ,
21
+ "test:e2e" : " ./scripts/setenv.sh && ./scripts/run-integration.sh" ,
22
+ "test:e2e-ci" : " ./scripts/run-integration.sh" ,
22
23
"prisma:generate-client" : " npx prisma generate --generator client && yarn prisma:generate-gql-select" ,
23
24
"prisma:generate-gql-select" : " node scripts/generate-model-select-map.js" ,
24
25
"prisma:generate-nest-graphql" : " npx prisma generate --generator nestgraphql" ,
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# src/run-integration.sh
3
3
4
- DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
5
- source $DIR /setenv.sh
6
-
7
4
npx ts-node ./test/utils/check-db.ts
8
5
EXIT_CODE=$?
9
6
You can’t perform that action at this time.
0 commit comments