ReviewOS

also looking at this

stacks/ts-tokens

chore(deps): update all non-major dependencies

#418
Closed chris wants to merge buddy-bot/update-non-major-updates-1770683029988 into main
11 files +442 -40
.github/workflows/ci.ymlmodified+20-5
Changes to .github/workflows/ci.yml
@@ -21,7 +21,7 @@ jobs:
2121 - uses: actions/checkout@v4
2222
2323 - name: Install Bun
24 uses: oven-sh/setup-bun@v2
24 uses: oven-sh/setup-bun@v2.1.2
2525
2626 - name: Use cached node_modules
2727 uses: actions/cache@v4
@@ -44,7 +44,7 @@ jobs:
4444 - uses: actions/checkout@v4
4545
4646 - name: Install Bun
47 uses: oven-sh/setup-bun@v2
47 uses: oven-sh/setup-bun@v2.1.2
4848
4949 - name: Use cached node_modules
5050 uses: actions/cache@v4
@@ -67,7 +67,7 @@ jobs:
6767 - uses: actions/checkout@v4
6868
6969 - name: Install Bun
70 uses: oven-sh/setup-bun@v2
70 uses: oven-sh/setup-bun@v2.1.2
7171
7272 - name: Use cached node_modules
7373 uses: actions/cache@v4
@@ -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
@@ -90,7 +105,7 @@ jobs:
90105 - uses: actions/checkout@v4
91106
92107 - name: Install Bun
93 uses: oven-sh/setup-bun@v2
108 uses: oven-sh/setup-bun@v2.1.2
94109
95110 - name: Use cached node_modules
96111 uses: actions/cache@v4