Skip to content

Commit 4cbf2b1

Browse files
committed
chore: add rsdoctor diff action
1 parent 480f74a commit 4cbf2b1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/reusable-build-test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,22 @@ jobs:
141141
NODE_NO_WARNINGS: 1
142142
WASM: 1
143143
run: pnpm run test:ci
144+
145+
### Rsdoctor Diff Action
146+
- name: Clone rspack-sourcemap-demo
147+
run: git clone git@github.com:yifancong/rspack-diff-minimal.git
148+
149+
- name: Install dependencies
150+
working-directory: rspack-diff-minimal
151+
run: pnpm i
152+
153+
- name: Build project
154+
working-directory: rspack-diff-minimal
155+
run: pnpm run build
156+
157+
- name: Report Compressed Size
158+
uses: web-infra-dev/rsdoctor-action@main
159+
with:
160+
github_token: ${{ secrets.GITHUB_TOKEN }}
161+
file_path: "rspack-diff-minimal/dist/rsdoctor-data.json"
162+
target_branch: "chore/diff-v2"

0 commit comments

Comments
 (0)