diff --git a/.github/workflows/actions/test-and-build/action.yaml b/.github/workflows/actions/test-and-build/action.yaml index e3d6b39e3..215dfac3d 100644 --- a/.github/workflows/actions/test-and-build/action.yaml +++ b/.github/workflows/actions/test-and-build/action.yaml @@ -32,7 +32,7 @@ runs: # https://github.com/nodejs/node-gyp/issues/2869 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: "3.11" - name: Run node-gyp bug workaround script run: | @@ -116,7 +116,10 @@ runs: env: SNYK_TOKEN: ${{ inputs.SNYK_TOKEN }} run: | - npm run snyk-test > /dev/null 2>&1 + npm run snyk-test + EXIT_CODE=$? + echo "Exit code $EXIT_CODE" + exit $EXIT_CODE" - name: Create Jira Tickets if: > diff --git a/scripts/snyk-test.js b/scripts/snyk-test.js index 688ce15d6..705e51283 100644 --- a/scripts/snyk-test.js +++ b/scripts/snyk-test.js @@ -31,7 +31,7 @@ async function snykTest(cwd) { } const res = JSON.parse(await fs.readFile(tmpPath)); - console.info(`testing ${cwd} done.`); + console.info(`testing ${cwd} done.`, res); return res; } catch (err) { console.error(`testing ${cwd} failed. ${err.message}`);