File tree 3 files changed +35
-24
lines changed
3 files changed +35
-24
lines changed Original file line number Diff line number Diff line change @@ -14,30 +14,41 @@ jobs:
14
14
run : |
15
15
fluentci run --wasm bun run lint
16
16
working-directory : src/client
17
+ env :
18
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
19
- name : Server Lint
18
20
run : |
19
21
fluentci run --wasm bun run lint
20
22
working-directory : src/server
23
+ env :
24
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
25
- name : 🧪 Client Unit Tests
22
26
run : |
23
27
fluentci run --wasm bun run test
24
28
working-directory : src/client
25
29
env :
26
30
CI : true
27
31
NODE_ENV : test
32
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
33
- name : 🧪 Server Unit Tests
29
34
run : |
30
35
fluentci run --wasm bun run test
31
36
working-directory : src/server
32
37
env :
33
38
CI : true
34
39
NODE_ENV : test
40
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
41
- name : 🔄 E2E Tests
36
42
run : |
37
43
cd src/client && fluentci run --wasm cypress install
38
44
cd ../..
39
45
fluentci run --wasm . e2e
46
+ env :
47
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
48
- name : 🔄 E2E Server
41
49
run : |
42
50
fluentci run --wasm postgres start
51
+ pkgx psql --host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'
43
52
fluentci run --wasm . server_e2e
53
+ env :
54
+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
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
+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ NODE_ENV=test
2
2
PORT = 3001
3
3
URL_PREFIX = v1/api
4
4
DATABASE_HOST = localhost
5
- DATABASE_USER = postgres
5
+ DATABASE_USER = runner
6
6
DATABASE_PASSWORD =
7
- DATABASE_DBNAME = postgres
7
+ DATABASE_DBNAME = test
8
8
DATABASE_PORT = 5432
You can’t perform that action at this time.
0 commit comments