Skip to content

Metric and Commit Results #153

Metric and Commit Results

Metric and Commit Results #153

Workflow file for this run

name: Metric and Commit Results
on:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 8.15.7
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Specify the Node.js version you need
cache: 'pnpm'
- name: Install dependencies
run: |
pnpm install -r
pnpm up rolldown@nightly # use latest nightly
- name: rolldown version
run: |
npx envinfo --system --npmPackages rolldown --binaries --browsers
- name: Run benchmarks
run: |
pnpm build
node scripts/index.mjs # Replace with your script name
- name: Commit benchmark results
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add metric.json
git commit -m "Update benchmark results"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}