Skip to content

ci: use pnpm/setup and devEngines #201

ci: use pnpm/setup and devEngines

ci: use pnpm/setup and devEngines #201

Workflow file for this run

name: cli-bench
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
# Runs the cheap suites against a baseline built from the PR's merge base:
# startup timings
# (interleaved, so the deltas survive runner noise even when the absolute
# numbers do not), module counts and install footprint. The dev, restart
# and build suites need real fixtures and minutes of wall time; run those
# locally with `pnpm bench:cli`.
bench:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Fetch merge base
run: git fetch --no-tags --depth=1 origin ${{ github.event.pull_request.base.sha }}
- uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
cache: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📊 Run benchmark suites
run: node --experimental-strip-types bench/run.ts --baseline ref:${{ github.event.pull_request.base.sha }} --suite startup --suite modules --suite footprint --out bench-report/report.md
- name: ⏫ Upload report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: cli-bench-report
path: bench-report/