ReviewOS

also looking at this

stacks/ts-tokens

chore(deps): update dependency actions/checkout to v6.0.2

#414
Closed chris wants to merge buddy-bot/update-major-update---actions/checkout-1770683005110 into main
2 files +60 -5

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/ci.ymlmodified+16-1
Changes to .github/workflows/ci.yml
@@ -81,7 +81,22 @@ jobs:
8181 run: bun install
8282
8383 - name: Unit Test
84 run: bun test
84 run: bun test --coverage 2>&1 | tee coverage-output.txt
85
86 - name: Check Coverage Threshold
87 run: |
88 if grep -q "All files" coverage-output.txt; then
89 LINE_COV=$(grep "All files" coverage-output.txt | awk '{print $4}' | tr -d '%')
90 echo "Line coverage: ${LINE_COV}%"
91 THRESHOLD=50
92 if [ "$(echo "${LINE_COV} < ${THRESHOLD}" | bc -l)" -eq 1 ]; then
93 echo "::error::Line coverage ${LINE_COV}% is below threshold ${THRESHOLD}%"
94 exit 1
95 fi
96 echo "Coverage ${LINE_COV}% meets threshold ${THRESHOLD}%"
97 else
98 echo "Coverage report not found — skipping threshold check"
99 fi
85100
86101 publish-commit:
87102 runs-on: ubuntu-latest