Skip to content

Commit e63f423

Browse files
committed
keep pm2 logs on test fail
1 parent 46b2f1a commit e63f423

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ jobs:
134134
pm2 status
135135
cd cables_api/
136136
npm run test:api
137+
pm2 logs --lines 100
137138
pm2 stop all
139+
pm2 flush
138140
- name: Publish API Tests Summary Results
139141
uses: ctrf-io/github-test-reporter@v1
140142
with:
@@ -154,7 +156,9 @@ jobs:
154156
pm2 status
155157
cd cables_api/
156158
npm run test:views
159+
pm2 logs --lines 100
157160
pm2 stop all
161+
pm2 flush
158162
- name: Publish Views Tests Summary Results
159163
uses: ctrf-io/github-test-reporter@v1
160164
with:

0 commit comments

Comments
 (0)