Skip to content

Add unified-selection-react package #326

Add unified-selection-react package

Add unified-selection-react package #326

name: PR unified-selection performance benchmark
on:
pull_request:
branches:
- master
- stable
paths:
- apps/performance-tests/unified-selection/**
- apps/performance-tests/util/**
- packages/unified-selection/**
- packages/shared/**
- pnpm-lock.yaml
- .github/workflows/benchmark-pr-unified-selection.yml
types: [opened, synchronize, reopened, ready_for_review]
jobs:
benchmark:
name: 'Unified selection: Benchmark performance'
if: '!github.event.pull_request.draft'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build benchmark tests
run: pnpm lage build --to presentation-performance-tests
- name: Restore dataset from cache
uses: actions/cache/restore@v4
id: cache-restore
env:
cache-name: cache-dataset
with:
path: "./apps/performance-tests/datasets/*.bim"
key: performance-test-dataset-${{ hashFiles('./apps/performance-tests/src/util/Datasets.ts') }}
- name: Run benchmark tests
run: pnpm benchmark:unified-selection
- name: Save generated datasets
uses: actions/cache/save@v4
if: steps.cache-restore.outputs.cache-hit != 'true'
with:
path: "./apps/performance-tests/datasets/*.bim"
key: performance-test-dataset-${{ hashFiles('./apps/performance-tests/src/util/Datasets.ts') }}
- name: Post benchmark summary
uses: jalextowle/github-action-benchmark@35e54a2ea34188ca73481c2a0ce5919907978f4f
with:
name: Unified selection benchmark
tool: 'customSmallerIsBetter'
output-file-path: ./apps/performance-tests/unified-selection-benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
save-data-file: false
comment-on-pull-request: true