Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(ci): add Codecov coverage reporting on release tags (#205)

Genere50827e8eaa1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1d5967525..6d1993234 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -100,6 +100,27 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm build
+ coverage:
+ name: Coverage
+ if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request'
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v6
+ - uses: pnpm/action-setup@v6
+ - uses: oven-sh/setup-bun@v2
+ - uses: actions/setup-node@v6
+ with:
+ node-version: 22
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile
+ - run: pnpm vitest run --coverage --coverage.reporter=json --coverage.reporter=text --coverage.include='src/**' --coverage.exclude='**/*.test.*' --coverage.exclude='**/*.spec.*'
+ - uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./coverage/coverage-final.json
+ fail_ci_if_error: true
+
lighthouse:
name: Lighthouse SEO
if: github.event_name == 'pull_request'
diff --git a/README.md b/README.md
index ebfae9ecd..6c2d4c545 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@
<p align="center">
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License" /></a>
<a href="https://github.com/alookai/alook/actions"><img src="https://github.com/alookai/alook/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
+ <a href="https://codecov.io/gh/alookai/alook"><img src="https://codecov.io/gh/alookai/alook/branch/main/graph/badge.svg" alt="codecov" /></a>
<a href="https://www.npmjs.com/package/@alook/app"><img src="https://img.shields.io/npm/v/@alook/app.svg" alt="npm version" /></a>
<a href="https://discord.alook.ai"><img src="https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white" alt="Discord" /></a>
</p>
diff --git a/package.json b/package.json
index b3289f68b..3ad6d2bca 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
"pre-commit": "pnpm typecheck && pnpm lint && pnpm test"
},
"devDependencies": {
+ "@vitest/coverage-v8": "^4.1.7",
"simple-git-hooks": "^2.13.1",
"turbo": "^2.9.14",
"typescript": "^6.0.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index dca543eb6..69e990a35 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
devDependencies:
+ '@vitest/coverage-v8':
+ specifier: ^4.1.7
+ version: 4.1.7([email protected])
simple-git-hooks:
specifier: ^2.13.1
version: 2.13.1
@@ -19,7 +22,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
wrangler:
specifier: ^4.94.0
version: 4.94.0(@cloudflare/[email protected])
@@ -96,7 +99,7 @@ importers:
vitest:
specifier: ^4.1.7
src/email-worker:
dependencies:
@@ -124,7 +127,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
wrangler:
specifier: ^4.94.0
version: 4.94.0(@cloudflare/[email protected])
@@ -155,7 +158,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
src/web:
dependencies:
@@ -242,7 +245,7 @@ importers:
better-auth:
specifier: ^1.6.11
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -363,7 +366,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
wrangler:
specifier: ^4.94.0
version: 4.94.0(@cloudflare/[email protected])
@@ -385,7 +388,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
wrangler:
specifier: ^4.94.0
version: 4.94.0(@cloudflare/[email protected])
@@ -407,7 +410,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.7
packages:
@@ -826,6 +829,10 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}
+ engines: {node: '>=18'}
+
'@better-auth/[email protected]':
resolution: {integrity: sha512-LrwidLCV8azdMGjvtwp30nj9tIv1BwI3VhtC0UaGSjQkAVWw4bN42I8qwbxRziPeSQoj+zUVkOpxZzAWBDARtQ==}
peerDependencies:
@@ -3082,6 +3089,15 @@ packages:
'@upsetjs/[email protected]':
resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-qsYPeXc5Q9dFLd1i8Ap+Bx8sQgcp+rFVQo4R0dDsWNBzl26ldVF1qOO+RL24K7FDrR6pA+50XedRLSoSG24bVQ==}
+ peerDependencies:
+ '@vitest/browser': 4.1.7
+ vitest: 4.1.7
+ peerDependenciesMeta:
+ '@vitest/browser':
+ optional: true
+
'@vitest/[email protected]':
resolution: {integrity: sha512-1R+tw0ortHEbZDGMymm+pN7/AFQ/RkFFdtd7EN+VBpynKmLbP8A3rpEXdshBJ7+8hQ9zBJh/i1s0yKNtxAnU7w==}
@@ -3263,6 +3279,9 @@ packages:
resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-dKmJxJsGItLmc5CYZKuEjuG6GnBs6PG4gohMhyFOWKaNQoYCuRZJDECaBlHmcG0lv2wc2E0uU8lESmBEumC3DQ==}
+
resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==}
hasBin: true
@@ -4943,6 +4962,9 @@ packages:
resolution: {integrity: sha512-7fvVPbB92zNRsQke+uiRGwtTuef0tB2Dg4hWxYfFNvkQhIltWoyi0ONReM5LWA+jJWS3nfT5lTq+qbsIpX0IQw==}
engines: {node: '>=16.9.0'}
+ resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
+
resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}
@@ -5272,6 +5294,18 @@ packages:
resolution: {integrity: sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==}
+ resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
engines: {node: '>= 0.4'}
@@ -5294,6 +5328,9 @@ packages:
resolution: {integrity: sha512-c80Qupofp43y4cJ7+8TTDN/AsDwLi5oOm/plBrWI+iQt485vKXCco+yVmOwEgdo9VOdsYTuV0UlTeetVPTriXA==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==}
+
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -5543,10 +5580,17 @@ packages:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+ resolution: {integrity: sha512-pVKE4UdSQ7DvHzivsCIFx2BJn1mHG6KsyrFcaxFx6tONdneEuThrDx0Cj3AMg58KyN4pzYT+LHOotxDQDjNvkw==}
+
resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==}
engines: {node: '>=16'}
@@ -8410,6 +8454,8 @@ snapshots:
optionalDependencies:
'@types/react': 19.2.15
+ '@bcoe/[email protected]': {}
+
dependencies:
'@better-auth/utils': 0.4.0
@@ -10515,6 +10561,20 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1([email protected])
+ dependencies:
+ '@bcoe/v8-coverage': 1.0.2
+ '@vitest/utils': 4.1.7
+ ast-v8-to-istanbul: 1.0.2
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-report: 3.0.1
+ istanbul-reports: 3.2.0
+ magicast: 0.5.3
+ obug: 2.1.1
+ std-env: 4.1.0
+ tinyrainbow: 3.1.0
+
'@vitest/[email protected]':
dependencies:
'@standard-schema/spec': 1.1.0
@@ -10737,6 +10797,12 @@ snapshots:
dependencies:
tslib: 2.8.1
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ estree-walker: 3.0.3
+ js-tokens: 10.0.0
+
@@ -10801,7 +10867,7 @@ snapshots:
dependencies:
@@ -10826,7 +10892,7 @@ snapshots:
react: 19.2.6
react-dom: 19.2.6([email protected])
transitivePeerDependencies:
- '@cloudflare/workers-types'
- '@opentelemetry/api'
@@ -12722,6 +12788,8 @@ snapshots:
+
@@ -13026,6 +13094,19 @@ snapshots:
transitivePeerDependencies:
- encoding
+
+ dependencies:
+ istanbul-lib-coverage: 3.2.2
+ make-dir: 4.0.0
+ supports-color: 7.2.0
+
+ dependencies:
+ html-escaper: 2.0.2
+ istanbul-lib-report: 3.0.1
+
dependencies:
define-data-property: 1.1.4
@@ -13047,6 +13128,8 @@ snapshots:
+
@@ -13293,10 +13376,20 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
+ dependencies:
+ '@babel/parser': 7.29.3
+ '@babel/types': 7.29.0
+ source-map-js: 1.2.1
+
dependencies:
semver: 6.3.1
+ dependencies:
+ semver: 7.8.1
+
@@ -15631,7 +15724,7 @@ snapshots:
tsx: 4.22.3
yaml: 2.9.0
dependencies:
'@vitest/expect': 4.1.7
@@ -15656,6 +15749,7 @@ snapshots:
optionalDependencies:
'@opentelemetry/api': 1.9.1
'@types/node': 25.9.1
+ '@vitest/coverage-v8': 4.1.7([email protected])
transitivePeerDependencies:
- msw