Skip to content

Commit d3dce52

Browse files
add check on tests.sh not existing in docs from main unit test.
1 parent ee7c474 commit d3dce52

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/stage-2-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130

131131
- name: "Publish Jest test report"
132132
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
133+
continue-on-error: true
133134
with:
134135
name: Jest Test Report
135136
path: 'test-results/**/junit.xml'
@@ -138,6 +139,7 @@ jobs:
138139

139140
- name: "Publish pytest test report"
140141
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
142+
continue-on-error: true
141143
with:
142144
name: Pytest Test Report
143145
path: 'test-results/**/pytest-report.xml'

scripts/tests/unit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd "$(git rev-parse --show-toplevel)"
2222
npm ci && \
2323
npm run test:unit --workspaces && \
2424
cd docs && \
25-
./test.sh && \
25+
(if [[ -f ./test.sh ]]; then ./test.sh; else echo "⚠️ WARNING: test.sh does not exist in docs/, skipping..."; fi) && \
2626
cd .. && \
2727
mkdir -p .reports && \
2828
TMPDIR="./.reports" ./node_modules/.bin/lcov-result-merger "**/.reports/unit/coverage/lcov.info" ".reports/lcov.info" --ignore "node_modules" --prepend-source-files --prepend-path-fix "../../.." && \

0 commit comments

Comments
 (0)