Skip to content

Commit 44fa541

Browse files
authored
chore: add Rsdoctor bundle diff CI (#2722)
1 parent d5dfeea commit 44fa541

File tree

4 files changed

+523
-1
lines changed

4 files changed

+523
-1
lines changed

.github/workflows/diff.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Diff
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
Build:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
20+
with:
21+
fetch-depth: 0
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Setup Pnpm
25+
run: |
26+
npm install -g corepack@latest --force
27+
corepack enable
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
31+
with:
32+
node-version: 22
33+
cache: 'pnpm'
34+
35+
- name: Install Dependencies and Build
36+
run: |
37+
pnpm install
38+
39+
- name: Build Demo Project
40+
run: |
41+
cd website
42+
pnpm install
43+
RSDOCTOR=1 pnpm run build
44+
45+
- name: Report Compressed Size
46+
uses: web-infra-dev/rsdoctor-action@feat/no-baseline-report
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
file_path: 'website/doc_build/web/rsdoctor-data.json'
50+
target_branch: 'main'

0 commit comments

Comments
 (0)