Skip to content

Benchmark history

Benchmark history #7

name: Benchmark history
on:
schedule:
- cron: "0 12 * * 1"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: benchmark-history-${{ github.ref }}
cancel-in-progress: false
jobs:
update-history:
name: Update benchmark history
runs-on: ubuntu-latest
timeout-minutes: 60
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.10
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Refresh rolling benchmark history
run: bun run benchmark:history
- name: Commit history updates
run: |
if git diff --quiet -- benchmarks/history reports/known-ai-vs-solid-oss-history.md; then
echo "No history changes to commit"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add benchmarks/history reports/known-ai-vs-solid-oss-history.md
git commit -m "Update benchmark history"
git push