Skip to content

Manual

Manual #261

Workflow file for this run

name: Manual
on:
workflow_dispatch:
inputs:
product:
description: 'product name of which to bench'
type: choice
required: true
options:
- MODERNJS_FRAMEWORK
- MODERNJS_MODULE
- RSPRESS
- RSBUILD
case:
description: 'case name of which to bench'
type: choice
required: true
options:
- app-minimal
- app-initial
- app-initial-rspack
- app-tailwind
- app-ssr
- app-ssg
- app-bff-koa
- app-arco-pro
- app-arco-pro-swc
- app-arco-pro-esbuild
- app-arco-pro-rspack
- module-initial
- module-library
- module-library-sourcemap
- module-library-noautoexternal
- module-library-minify-esbuild
- module-library-minify-terser
- module-component
- rspress-minimal
- rspress-website
- rspress-website-mdxjs
- rsbuild-react
- rsbuild-vue2
- rsbuild-vue3
- rsbuild-lit
- rsbuild-svelte
- rsbuild-vanilla
commitId:
description: 'commitId of your repo'
onlyInstallSize:
description: "If only want install size, set to 'true'"
jobs:
bench:
strategy:
matrix:
include:
- case: ${{ github.event.inputs.case }}
product: ${{ github.event.inputs.product }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Pnpm
run: corepack enable && pnpm -v
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Install Dependencies
run: pnpm run install:scripts
- name: 🚀 Run specified benchmark
run: cd scripts && ONLY_INSTALL_SIZE=${{ github.event.inputs.onlyInstallSize }} GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} COMMIT_ID=${{ github.event.inputs.commitId }} pnpm start ${{ matrix.product }} ${{ matrix.case }}
- name: Setup git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Update data
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: data
target-folder: data
git-config-name: gh-pages-bot
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
clean: false