File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
steps :
14
14
- uses : actions/checkout@v4
15
+
15
16
- name : Run e2e tests for NestJS with TypeORM
17
+ id : relational
16
18
run : docker compose -f docker-compose.relational.ci.yaml --env-file env-example-relational -p ci-relational up --build --exit-code-from api
19
+
20
+ - name : Copy prod.log from container to host
21
+ if : ${{ failure() && steps.relational.conclusion == 'failure' }}
22
+ run : docker cp ci-relational-api-1:/usr/src/app/prod.log .
23
+
17
24
- name : Run e2e tests for NestJS with Mongoose
25
+ id : document
18
26
run : docker compose -f docker-compose.document.ci.yaml --env-file env-example-document -p ci-document up --build --exit-code-from api
27
+
28
+ - name : Copy prod.log from container to host
29
+ if : ${{ failure() && steps.document.conclusion == 'failure' }}
30
+ run : docker cp ci-document-api-1:/usr/src/app/prod.log .
31
+
32
+ - name : Upload prod.log to artifacts for debugging
33
+ if : failure()
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : prod-logs
37
+ path : prod.log
Original file line number Diff line number Diff line change 3
3
4
4
/opt/wait-for-it.sh mongo:27017
5
5
npm run seed:run:document
6
- npm run start:prod > /dev/null 2>&1 &
6
+ npm run start:prod > prod.log 2>&1 &
7
7
/opt/wait-for-it.sh maildev:1080
8
8
/opt/wait-for-it.sh localhost:3000
9
9
npm run lint
Original file line number Diff line number Diff line change 4
4
/opt/wait-for-it.sh postgres:5432
5
5
npm run migration:run
6
6
npm run seed:run:relational
7
- npm run start:prod > /dev/null 2>&1 &
7
+ npm run start:prod > prod.log 2>&1 &
8
8
/opt/wait-for-it.sh maildev:1080
9
9
/opt/wait-for-it.sh localhost:3000
10
10
npm run lint
You can’t perform that action at this time.
0 commit comments