Skip to content

Commit 7c9ebb4

Browse files
committed
chore(ci): add hybrid coverage summary and align bun 1.3.9
1 parent 5c02a78 commit 7c9ebb4

File tree

7 files changed

+29
-9
lines changed

7 files changed

+29
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,23 @@ jobs:
4040

4141
- name: Verify
4242
run: bun run verify
43+
44+
- name: Coverage summary
45+
if: always()
46+
run: |
47+
{
48+
echo "## Coverage Summary"
49+
echo
50+
51+
if [ -f coverage/coverage-summary.json ]; then
52+
node -e 'const fs=require("node:fs"); const total=JSON.parse(fs.readFileSync("coverage/coverage-summary.json","utf8")).total; console.log("- Vitest (v8): lines "+total.lines.pct+"% | statements "+total.statements.pct+"% | branches "+total.branches.pct+"% | functions "+total.functions.pct+"%");'
53+
else
54+
echo "- Vitest (v8): not available"
55+
fi
56+
57+
if [ -f coverage/bun/lcov.info ]; then
58+
node -e 'const fs=require("node:fs"); const txt=fs.readFileSync("coverage/bun/lcov.info","utf8"); let LF=0,LH=0,BRF=0,BRH=0,FNF=0,FNH=0; for (const line of txt.split(/\r?\n/)) { if (line.startsWith("LF:")) LF += Number(line.slice(3)); else if (line.startsWith("LH:")) LH += Number(line.slice(3)); else if (line.startsWith("BRF:")) BRF += Number(line.slice(4)); else if (line.startsWith("BRH:")) BRH += Number(line.slice(4)); else if (line.startsWith("FNF:")) FNF += Number(line.slice(4)); else if (line.startsWith("FNH:")) FNH += Number(line.slice(4)); } const pct=(h,f)=>f===0?"0.00":((h/f)*100).toFixed(2); console.log("- Bun test: lines "+pct(LH,LF)+"% ("+LH+"/"+LF+") | branches "+pct(BRH,BRF)+"% ("+BRH+"/"+BRF+") | functions "+pct(FNH,FNF)+"% ("+FNH+"/"+FNF+")");'
59+
else
60+
echo "- Bun test: not available"
61+
fi
62+
} >> "$GITHUB_STEP_SUMMARY"

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
| Aspect | Value |
1616
| ---------------- | ------------- |
17-
| Package Manager | Bun 1.3.8 |
17+
| Package Manager | Bun 1.3.9 |
1818
| Node.js | >=24.0.0 |
1919
| Linter/Formatter | Biome 2.3.14 |
2020
| Test Framework | Vitest |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To chat with other community members, you can join the [Evolu Discord](https://d
2929
Evolu monorepo uses [Bun](https://bun.sh).
3030

3131
> [!NOTE]
32-
> The Evolu monorepo is verified to run under **Bun 1.3.8** in combination with **Node.js >=24.0.0**. This compatibility is explicitly tested in CI.
32+
> The Evolu monorepo is verified to run under **Bun 1.3.9** in combination with **Node.js >=24.0.0**. This compatibility is explicitly tested in CI.
3333
3434
Install dependencies:
3535

@@ -96,4 +96,4 @@ Licensed under [MIT](./LICENSE).
9696
<div align="center">
9797
<a href="https://github.com/enterprises/ownCTRL"><img src="https://img.shields.io/badge/©️_2026-ownCTRL™-333?style=flat&labelColor=ddd" alt="© 2026 ownCTRL™"/></a>
9898
<a href="https://github.com/miccy"><img src="https://img.shields.io/badge/⚙️_Maintained_with_🩶_by-%40miccy-333?style=flat&labelColor=ddd" alt="Maintained by @miccy"/></a>
99-
</div>
99+
</div>

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"repository": "https://github.com/SQLoot/evolu-plan-b",
55
"author": "SQLoot",
66
"license": "MIT",
7-
"packageManager": "bun@1.3.8",
7+
"packageManager": "bun@1.3.9",
88
"workspaces": [
99
"apps/*",
1010
"packages/*",
@@ -19,7 +19,7 @@
1919
"test": "vitest run",
2020
"test:coverage": "bun run test:coverage:vitest && bun run test:coverage:bun",
2121
"test:coverage:vitest": "vitest run --coverage",
22-
"test:coverage:bun": "bun --filter=@evolu/bun run test:coverage",
22+
"test:coverage:bun": "bun test ./packages/bun/test --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage/bun",
2323
"test:watch": "vitest",
2424
"start": "turbo start",
2525
"lint": "biome check",

packages/bun/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"scripts": {
2121
"build": "rimraf dist && tsc --build",
2222
"test": "bun test ./test",
23-
"test:coverage": "bun test ./test --coverage",
23+
"test:coverage": "bun test ./test --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage",
2424
"clean": "rimraf .turbo node_modules dist"
2525
},
2626
"devDependencies": {
2727
"@evolu/common": "workspace:*",
2828
"@evolu/tsconfig": "workspace:*",
29-
"bun-types": "^1.3.8",
29+
"bun-types": "^1.3.9",
3030
"typescript": "^5.9.3"
3131
},
3232
"peerDependencies": {

vitest.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
provider: "v8",
2525
include: ["packages/*/src/**/*.ts"],
2626
exclude: ["packages/*/src/**/index.ts"],
27-
reporter: ["text", "html"],
27+
reporter: ["text", "html", "json-summary"],
2828
},
2929
},
3030
});

0 commit comments

Comments
 (0)