Skip to content

Commit

Permalink
fix(e2e): update ormconfig.ci.json
Browse files Browse the repository at this point in the history
fix(e2e): update ormconfig.ci.json

fix(e2e): update ormconfig.ci.json
  • Loading branch information
tsirysndr committed Aug 21, 2024
1 parent 985751a commit 65e370a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,41 @@ jobs:
run: |
fluentci run --wasm bun run lint
working-directory: src/client
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Server Lint
run: |
fluentci run --wasm bun run lint
working-directory: src/server
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🧪 Client Unit Tests
run: |
fluentci run --wasm bun run test
working-directory: src/client
env:
CI: true
NODE_ENV: test
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🧪 Server Unit Tests
run: |
fluentci run --wasm bun run test
working-directory: src/server
env:
CI: true
NODE_ENV: test
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔄 E2E Tests
run: |
cd src/client && fluentci run --wasm cypress install
cd ../..
fluentci run --wasm . e2e
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔄 E2E Server
run: |
fluentci run --wasm postgres start
pkgx psql --host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'
fluentci run --wasm . server_e2e
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 22 additions & 22 deletions src/server/ormconfig.ci.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "",
"database": "postgres",
"synchronize": false,
"migrationsRun": true,
"logging": false,
"entities": [
"src/entity/**/*.ts"
],
"migrations": [
"src/migration/**/*.ts"
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"migrationsDir": "src/migration"
}
}
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "runner",
"password": "",
"database": "test",
"synchronize": false,
"migrationsRun": true,
"logging": false,
"entities": [
"src/entity/**/*.ts"
],
"migrations": [
"src/migration/**/*.ts"
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"migrationsDir": "src/migration"
}
}
4 changes: 2 additions & 2 deletions src/server/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NODE_ENV=test
PORT=3001
URL_PREFIX=v1/api
DATABASE_HOST=localhost
DATABASE_USER=postgres
DATABASE_USER=runner
DATABASE_PASSWORD=
DATABASE_DBNAME=postgres
DATABASE_DBNAME=test
DATABASE_PORT=5432

0 comments on commit 65e370a

Please sign in to comment.