|
21 | 21 |
|
22 | 22 | env: |
23 | 23 | AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE: '1' |
| 24 | + NODE_OPTIONS: '--trace-warnings' |
24 | 25 |
|
25 | 26 | jobs: |
26 | 27 | build-ci: |
@@ -141,6 +142,10 @@ jobs: |
141 | 142 | - name: ${{ matrix.test.name }} |
142 | 143 | run: ${{ matrix.test.command }} |
143 | 144 | env: ${{ matrix.test.env }} |
| 145 | + - name: Print stderr logs |
| 146 | + run: grep -H "" *.stderr.log || true |
| 147 | + - name: Error if stderr logs are not empty |
| 148 | + run: if [ -n "$(find . -name '*.stderr.log' -size +0c)" ]; then exit 1; fi |
144 | 149 |
|
145 | 150 | tests-v2-with-vault: |
146 | 151 | needs: |
@@ -246,6 +251,12 @@ jobs: |
246 | 251 | tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }} |
247 | 252 | tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }} |
248 | 253 | if: ${{ ( github.event.inputs.debug == true || github.event.inputs.debug == 'true' ) }} |
| 254 | + - name: Print stderr logs |
| 255 | + run: grep -H "" *.stderr.log || true |
| 256 | + - name: Error if stderr logs are not empty |
| 257 | + run: if [ -n "$(find . -name '*.stderr.log' -size +0c)" ]; then exit 1; fi |
| 258 | + |
| 259 | + |
249 | 260 | tests-v2-without-sensision: |
250 | 261 | needs: |
251 | 262 | - build-ci |
@@ -362,3 +373,7 @@ jobs: |
362 | 373 | tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }} |
363 | 374 | tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }} |
364 | 375 | if: ${{ ( github.event.inputs.debug == true || github.event.inputs.debug == 'true' ) }} |
| 376 | + - name: Print stderr logs |
| 377 | + run: grep -H "" *.stderr.log || true |
| 378 | + - name: Error if stderr logs are not empty |
| 379 | + run: if [ -n "$(find . -name '*.stderr.log' -size +0c)" ]; then exit 1; fi |
0 commit comments