fix(ci): retry lint runner crashes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user