mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
35 lines
730 B
YAML
35 lines
730 B
YAML
name: Benchmark
|
|
|
|
on:
|
|
issue_comment:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
bench:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.issue.pull_request && (github.event.comment.body == '/bench' || github.event.comment.body == '/benchmark') }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2.0.1
|
|
with:
|
|
version: 6.23.5
|
|
|
|
- name: Install node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
cache: "pnpm"
|
|
|
|
- name: Install
|
|
working-directory: ./bench
|
|
run: pnpm i
|
|
|
|
- name: Run benchmark
|
|
working-directory: ./bench
|
|
run: pnpm bench:ci
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|