a reactive (signals based) hypermedia web framework (wip) stormlightlabs.github.io/volt/
hypermedia frontend signals
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: test & codecov action

+37
+34
.github/workflows/test.yml
··· 1 + name: Run tests and upload coverage 2 + 3 + on: 4 + push 5 + 6 + jobs: 7 + test: 8 + name: Run tests and collect coverage 9 + runs-on: ubuntu-latest 10 + steps: 11 + - name: Checkout 12 + uses: actions/checkout@v4 13 + with: 14 + fetch-depth: 2 15 + - uses: pnpm/action-setup@v4 16 + name: Install pnpm 17 + with: 18 + version: 9 19 + run_install: false 20 + - name: Install Node.js 21 + uses: actions/setup-node@v3 22 + with: 23 + node-version: 24 24 + cache: pnpm 25 + registry-url: https://registry.npmjs.org 26 + - name: Install dependencies 27 + run: pnpm install --frozen-lockfile 28 + - name: Run tests 29 + run: pnpm vitest run --coverage --reporter=json 30 + working-directory: lib 31 + - name: Upload results to Codecov 32 + uses: codecov/codecov-action@v5 33 + with: 34 + token: ${{ secrets.CODECOV_TOKEN }}
+2
lib/package.json
··· 26 26 "preview": "vite preview", 27 27 "test": "vitest", 28 28 "test:run": "vitest run", 29 + "coverage": "vitest run --coverage", 30 + "codecov": "vitest run --coverage --reporter=json", 29 31 "typecheck": "tsc --noEmit", 30 32 "prepublishOnly": "pnpm build && pnpm test:run", 31 33 "publish:npm": "npm publish --access=public",
+1
lib/vite.config.ts
··· 14 14 reporters: ["dot"], 15 15 coverage: { 16 16 provider: "v8", 17 + reporter: ["text", "json-summary", "html", "lcov", "json"], 17 18 thresholds: { functions: 50, branches: 50 }, 18 19 include: ["**/src/**"], 19 20 exclude: ["**/cli/src/**", "**/src/main.ts"],