Skip to content

Commit

Permalink
Change to continue on error so build fails if tests have failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rushby committed Oct 29, 2024
1 parent 3782785 commit dbc6946
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
- name: Run build
run: npm run build

- name: Run tests with output (allow failures)
- name: Run tests & generate test output files
id: run_tests
continue-on-error: true
run: |
mkdir -p reports
set -o pipefail && npm run test 2>&1 | tee reports/test_output.txt || true
set -o pipefail && npm run test 2>&1 | tee reports/test_output.txt
- name: Debug - Check if test_output.txt exists
run: |
Expand Down

0 comments on commit dbc6946

Please sign in to comment.