Skip to content

Commit

Permalink
chore: Use MongoDB v8 for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
avaly committed Nov 15, 2024
1 parent 5dcf05c commit c6e0c0b
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Benchmark

on:
push:
branches:
- chore/benchmark-mongodb-v8
schedule:
- cron: '30 5 15 * *'

Expand All @@ -18,35 +21,35 @@ jobs:
cache: 'pnpm'
- uses: supercharge/[email protected]
with:
mongodb-version: 6.0
mongodb-version: 8.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 }}
# - 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 }}"
# ```
# ${{ 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 }}"

0 comments on commit c6e0c0b

Please sign in to comment.