Skip to content

Commit 65e370a

Browse files
committed
fix(e2e): update ormconfig.ci.json
fix(e2e): update ormconfig.ci.json fix(e2e): update ormconfig.ci.json
1 parent 985751a commit 65e370a

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

.github/workflows/ci.yml

+11
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,41 @@ jobs:
1414
run: |
1515
fluentci run --wasm bun run lint
1616
working-directory: src/client
17+
env:
18+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1719
- name: Server Lint
1820
run: |
1921
fluentci run --wasm bun run lint
2022
working-directory: src/server
23+
env:
24+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2125
- name: 🧪 Client Unit Tests
2226
run: |
2327
fluentci run --wasm bun run test
2428
working-directory: src/client
2529
env:
2630
CI: true
2731
NODE_ENV: test
32+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2833
- name: 🧪 Server Unit Tests
2934
run: |
3035
fluentci run --wasm bun run test
3136
working-directory: src/server
3237
env:
3338
CI: true
3439
NODE_ENV: test
40+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3541
- name: 🔄 E2E Tests
3642
run: |
3743
cd src/client && fluentci run --wasm cypress install
3844
cd ../..
3945
fluentci run --wasm . e2e
46+
env:
47+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4048
- name: 🔄 E2E Server
4149
run: |
4250
fluentci run --wasm postgres start
51+
pkgx psql --host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'
4352
fluentci run --wasm . server_e2e
53+
env:
54+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/server/ormconfig.ci.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"type": "postgres",
3-
"host": "localhost",
4-
"port": 5432,
5-
"username": "postgres",
6-
"password": "",
7-
"database": "postgres",
8-
"synchronize": false,
9-
"migrationsRun": true,
10-
"logging": false,
11-
"entities": [
12-
"src/entity/**/*.ts"
13-
],
14-
"migrations": [
15-
"src/migration/**/*.ts"
16-
],
17-
"subscribers": [
18-
"src/subscriber/**/*.ts"
19-
],
20-
"cli": {
21-
"migrationsDir": "src/migration"
22-
}
23-
}
2+
"type": "postgres",
3+
"host": "localhost",
4+
"port": 5432,
5+
"username": "runner",
6+
"password": "",
7+
"database": "test",
8+
"synchronize": false,
9+
"migrationsRun": true,
10+
"logging": false,
11+
"entities": [
12+
"src/entity/**/*.ts"
13+
],
14+
"migrations": [
15+
"src/migration/**/*.ts"
16+
],
17+
"subscribers": [
18+
"src/subscriber/**/*.ts"
19+
],
20+
"cli": {
21+
"migrationsDir": "src/migration"
22+
}
23+
}

src/server/test.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NODE_ENV=test
22
PORT=3001
33
URL_PREFIX=v1/api
44
DATABASE_HOST=localhost
5-
DATABASE_USER=postgres
5+
DATABASE_USER=runner
66
DATABASE_PASSWORD=
7-
DATABASE_DBNAME=postgres
7+
DATABASE_DBNAME=test
88
DATABASE_PORT=5432

0 commit comments

Comments
 (0)