fix(ci): retry lint runner crashes
CI and Deploy / test (push) Successful in 7m35s
CI and Deploy / deploy (push) Failing after 33s

This commit is contained in:
cesnimda
2026-09-01 08:49:19 +02:00
parent d7366f9bd7
commit 1b78f712d3
+17 -1
View File
@@ -173,7 +173,23 @@ jobs:
- name: Lint frontend
working-directory: job-tracker-ui
run: npm run lint
# Match the runner resilience used by tests/builds without masking real lint errors.
# Exit 139 is the self-hosted runner killing Node before ESLint can report a result.
run: |
set +e
npm run lint
lint_status=$?
set -e
if [ "$lint_status" -eq 0 ]; then
exit 0
fi
if [ "$lint_status" -ne 139 ]; then
exit "$lint_status"
fi
echo "Frontend lint process crashed with SIGSEGV — retrying once..."
npm run lint
- name: Test frontend
working-directory: job-tracker-ui