-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update benchmark with Papr v14 and node.js v18 (#540)
- Loading branch information
Showing
10 changed files
with
250 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs/data.json linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Benchmark | ||
|
||
on: | ||
schedule: | ||
- cron: '30 5 * * *' | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
- 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 | ||
- id: create-pr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
add-paths: docs/data.json | ||
base: main | ||
body: 'Automated benchmark results generated on ${{ steps.date.outputs.date }}' | ||
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,6 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'pnpm' | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
node_modules | ||
key: node-${{ matrix.node }}-${{ hashFiles('package.json', 'pnpm-lock.yaml') }} | ||
restore-keys: | | ||
node-${{ matrix.node }}- | ||
- run: node -v | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm test:build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.