Skip to content

Run benchmarks

Run benchmarks #10

Workflow file for this run

# Workflow for credential-proving benchmarks
name: Run benchmarks
on:
schedule:
- cron: '0 0 */2 * *'
workflow_dispatch:
permissions:
contents: write
id-token: write
concurrency:
group: "benchmark"
cancel-in-progress: false
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup env
uses: ./.github/actions/setup
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install & build packages
run: |
pnpm i
pnpm run build
- name: Run benchmarks
run: pnpm run benchmark
- name: Commit benchmark results
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git checkout -b benchmark-results
git add .
git commit -m "Update benchmark results" -a || echo "No changes to commit"
git push origin benchmark-results