Skip to content

Benchmark

Benchmark #27

Workflow file for this run

name: Benchmark
on:
schedule:
- cron: '30 5 15 * *'
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
filter: tree:0
- uses: pnpm/[email protected]
- uses: actions/[email protected]
with:
node-version-file: 'package.json'
cache: 'pnpm'
- uses: supercharge/[email protected]
with:
mongodb-version: 6.0
- id: date
run: |
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- run: node -v
- run: pnpm install --frozen-lockfile
- run: pnpm benchmark
- uses: actions/[email protected]
id: results
with:
script: |
core.setOutput('results', require('./docs/data.json').benchmark.results);
- id: create-pr
uses: peter-evans/create-pull-request@v7
with:
add-paths: docs/data.json
base: main
body: |
Automated benchmark results generated on ${{ steps.date.outputs.date }}
```
${{ steps.results.outputs.results }}
```
branch: docs/benchmark-${{ steps.date.outputs.date }}
commit-message: 'docs: Benchmark results ${{ steps.date.outputs.date }}'
delete-branch: true
reviewers: avaly
title: 'docs: Benchmark results ${{ steps.date.outputs.date }}'
- if: ${{ steps.create-pr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}"