Skip to content
Source
Sign inSign up
TanStack/db

ci: benchmark PRs against main with the incremental update suite #1650

Mergedkevin-dp(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/1650/headmerged by KyleAMathews

Showing 3 changed files with 95 additions and 0 deletions (loading 2).

x
0 of 3 viewed, 3 left
95 additions and 0 deletions.github/workflows/benchmark.ymlAdded
View file
@@ -0,0 +1,95 @@
+name: Benchmark
+​
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ paths:
+ - 'packages/db/**'
+ - 'packages/db-ivm/**'
+ - 'scripts/bench/**'
+ - '.github/workflows/benchmark.yml'
+​
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+​
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
+ cancel-in-progress: true
+​
+permissions:
+ contents: read
+​
+jobs:
+ benchmark:
+ name: Incremental Update Benchmark
+ # Skip draft PRs; the benchmark runs once a PR is marked ready for review
+ # (and on subsequent pushes to it).
+ if: github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false