From 528df20e25ef5237d32d1b821bdb98b746099ce1 Mon Sep 17 00:00:00 2001 From: Laurents Meyer Date: Fri, 27 Oct 2023 04:20:09 +0200 Subject: [PATCH] Publish test results as GitHub Checks. --- .github/workflows/test_results.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/test_results.yml b/.github/workflows/test_results.yml index 846c3c5..9b70e8b 100644 --- a/.github/workflows/test_results.yml +++ b/.github/workflows/test_results.yml @@ -13,6 +13,28 @@ jobs: Report: runs-on: ubuntu-latest steps: + - name: 'Add default settings to node calls' + shell: bash + run: | + # + # The later used dorny/test-reporter@v1 action can throw the following exception when enough tests have been + # executed: + # RangeError: Maximum call stack size exceeded + # + # We explicitly increase the stack max. stack size here to workaround this issue. + # + + which node + node --version + + mv /usr/local/bin/node /usr/local/bin/node_org + echo '#!/bin/bash' >> /usr/local/bin/node + echo '/usr/local/bin/node_org --stack-size=8192 $@' >> /usr/local/bin/node + cat /usr/local/bin/node + chmod +x /usr/local/bin/node + + which node + node --version - name: 'Check Artifact' id: CheckArtifact uses: actions/github-script@v6