diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index a5a631f..fc4c43c 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -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