Skip to content

Commit 8fdce69

Browse files
committed
chore(json-api-nestjs-microorm): disable debug mode and comment out unused e2e service configurations
1 parent f9b4abc commit 8fdce69

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/e2e-test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ env:
2020
jobs:
2121
e2e-test:
2222
runs-on: ubuntu-latest
23-
services:
24-
postgres:
25-
image: postgres
26-
env:
27-
POSTGRES_PASSWORD: postgres
28-
POSTGRES_DB: json-api-db
29-
options: >-
30-
--health-cmd pg_isready
31-
--health-interval 10s
32-
--health-timeout 5s
33-
--health-retries 5
34-
ports:
35-
- 5432:5432
23+
# services:
24+
# postgres:
25+
# image: postgres
26+
# env:
27+
# POSTGRES_PASSWORD: postgres
28+
# POSTGRES_DB: json-api-db
29+
# options: >-
30+
# --health-cmd pg_isready
31+
# --health-interval 10s
32+
# --health-timeout 5s
33+
# --health-retries 5
34+
# ports:
35+
# - 5432:5432
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v4
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
main-branch-name: ${{ inputs.mainBranch }}
6161

62-
- run: npm run typeorm migration:run
63-
- run: npm run seed:run
62+
# - run: npm run typeorm migration:run
63+
# - run: npm run seed:run
6464
- run: npx nx run json-api-server-e2e:e2e --parallel=1
6565
- run: npx nx run json-api-server-e2e:e2e-micro --parallel=1

libs/json-api/json-api-nestjs-microorm/src/lib/mock-utils/utils/init-db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export async function initMikroOrm(testDbName: string) {
3434
entities: [Users, UserGroups, Roles, Comments, Addresses, Notes],
3535
allowGlobalContext: true,
3636
schema: 'public',
37-
debug:
38-
process.env['DB_LOGGING'] !== '0' ? ['query', 'query-params'] : false,
37+
debug: false
38+
// process.env['DB_LOGGING'] !== '0' ? ['query', 'query-params'] : false,
3939
});
4040

4141
const sql = await orm.getSchemaGenerator().getCreateSchemaSQL();

0 commit comments

Comments
 (0)