Skip to content

Commit b4e9317

Browse files
committed
Updated exported types and added codecov github action
1 parent 4730af1 commit b4e9317

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Vitest and Upload Code Coverage
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
test:
9+
name: vitest-codecov
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: latest
21+
22+
- name: Set up bun
23+
uses: oven-sh/setup-bun@v2
24+
25+
- name: Install dependencies
26+
run: bun install --frozen-lockfile
27+
28+
- name: Run Vitest
29+
run: bunx vitest run --coverage
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v5
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import type { CustomPlugin, DecompressionOptions, PluginConfig } from "./interna
1313

1414
declare module "rollup-plugin-pull-remote-blob" {
1515
export function pullRemoteBlobPlugin(config?: PluginConfig): CustomPlugin;
16-
export type { DecompressionOptions, PluginConfig, CustomPlugin };
16+
export type { PluginConfig, DecompressionOptions };
1717
}

0 commit comments

Comments
 (0)