Merge dev: Node.js scraper migration + CI fix #32
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -44,8 +44,10 @@ jobs:
|
|||||||
set +e
|
set +e
|
||||||
OUTPUT=$(npm run lint 2>&1)
|
OUTPUT=$(npm run lint 2>&1)
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
# Truncate before writing to GITHUB_OUTPUT to prevent
|
||||||
|
# "argument list too long" in downstream jobs
|
||||||
echo "lint_output<<EOF" >> $GITHUB_OUTPUT
|
echo "lint_output<<EOF" >> $GITHUB_OUTPUT
|
||||||
echo "$OUTPUT" >> $GITHUB_OUTPUT
|
echo "${OUTPUT:0:10000}" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
|
||||||
@ -56,8 +58,10 @@ jobs:
|
|||||||
set +e
|
set +e
|
||||||
OUTPUT=$(npm test -- --runInBand 2>&1)
|
OUTPUT=$(npm test -- --runInBand 2>&1)
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
# Truncate before writing to GITHUB_OUTPUT to prevent
|
||||||
|
# "argument list too long" in downstream jobs
|
||||||
echo "test_output<<EOF" >> $GITHUB_OUTPUT
|
echo "test_output<<EOF" >> $GITHUB_OUTPUT
|
||||||
echo "$OUTPUT" >> $GITHUB_OUTPUT
|
echo "${OUTPUT:0:10000}" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
env:
|
env:
|
||||||
@ -98,9 +102,9 @@ jobs:
|
|||||||
OVERALL_STATUS="failure"
|
OVERALL_STATUS="failure"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Truncate outputs if too long (max 10000 chars each)
|
# Outputs are already truncated at the source (ci job)
|
||||||
LINT_OUTPUT="${RAW_LINT_OUTPUT:0:10000}"
|
LINT_OUTPUT="$RAW_LINT_OUTPUT"
|
||||||
TEST_OUTPUT="${RAW_TEST_OUTPUT:0:10000}"
|
TEST_OUTPUT="$RAW_TEST_OUTPUT"
|
||||||
|
|
||||||
# Build JSON payload
|
# Build JSON payload
|
||||||
PAYLOAD=$(jq -n \
|
PAYLOAD=$(jq -n \
|
||||||
|
|||||||
Reference in New Issue
Block a user