Skip to content

Commit

Permalink
Fix server e2e tests on CI #4
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Jul 27, 2023
1 parent 37beaa6 commit e7eecd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
jobs:
server-test:
runs-on: ubuntu-latest
env:
PG_DATABASE_URL: postgres://postgres:postgrespassword@localhost:5432/test?connection_limit=1
services:
postgres:
image: postgres
Expand Down Expand Up @@ -46,4 +44,4 @@ jobs:
cd server && yarn test
- name: Server / Run e2e tests
run: |
cd server && yarn test:e2e-ci
cd server && yarn test:e2e
3 changes: 1 addition & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "./scripts/setenv.sh && ./scripts/run-integration.sh",
"test:e2e-ci": "./scripts/run-integration.sh",
"test:e2e": "./scripts/run-integration.sh",
"prisma:generate-client": "npx prisma generate --generator client && yarn prisma:generate-gql-select",
"prisma:generate-gql-select": "node scripts/generate-model-select-map.js",
"prisma:generate-nest-graphql": "npx prisma generate --generator nestgraphql",
Expand Down
3 changes: 3 additions & 0 deletions server/scripts/run-integration.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
# src/run-integration.sh

DIR="$(cd "$(dirname "$0")" && pwd)"
source $DIR/setenv.sh

npx ts-node ./test/utils/check-db.ts
EXIT_CODE=$?

Expand Down

0 comments on commit e7eecd5

Please sign in to comment.