Skip to content

Commit fe93e46

Browse files
authored
ci: add Rspeedy to RelativeCI (#760)
## Summary Add the Rspeedy to RelativeCI to monitor the bundle size change. See https://app.relative-ci.com/projects/IlmtJm9v1Hh532Ir067b ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
1 parent 6855247 commit fe93e46

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.github/workflows/relative-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- path: ./packages/web-platform/web-explorer
2222
name: web-explorer
2323
key: RELATIVE_CI_PROJECT_WEB_EXPLORER_KEY
24+
- path: ./packages/rspeedy/core
25+
name: rspeedy
26+
key: RELATIVE_CI_PROJECT_RSPEEDY_CORE_KEY
2427
runs-on: lynx-ubuntu-24.04-medium
2528
name: Upload ${{ matrix.project.name }}
2629
env:

.github/workflows/workflow-bundle-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
name: example-react
1919
- path: ./packages/web-platform/web-explorer
2020
name: web-explorer
21+
- path: ./packages/rspeedy/core
22+
name: rspeedy
2123
name: Build ${{ matrix.project.name }}
2224
steps:
2325
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -42,6 +44,8 @@ jobs:
4244
run: |
4345
pnpm turbo build --summarize
4446
- name: Build ${{ matrix.project.name }}
47+
env:
48+
RSPEEDY_BUNDLE_ANALYSIS: 1
4549
run: |
4650
pnpm --filter ${{ matrix.project.path }} run build
4751
- uses: relative-ci/agent-upload-artifact-action@a2b5741b4f7e6a989c84ec1a3059696b23c152e5 #v2

packages/rspeedy/core/rslib.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default defineConfig({
99
syntax: 'es2022',
1010
dts: { bundle: true },
1111
plugins: [pluginTypia()],
12+
performance: {
13+
profile: !!process.env.RSPEEDY_BUNDLE_ANALYSIS,
14+
},
1215
},
1316
{
1417
format: 'esm',

packages/rspeedy/core/turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"dependsOn": [
99
"^build"
1010
],
11+
"env": [
12+
"RSPEEDY_BUNDLE_ANALYSIS"
13+
],
1114
"inputs": [
1215
"register",
1316
"src",

0 commit comments

Comments
 (0)