Skip to content

Commit

Permalink
[DNM] Try manual benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM authored Feb 6, 2025
1 parent f21ece1 commit 4c37aab
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
name: benchmark
on:
workflow_dispatch:
inputs:
pr_number:
type: number
required: true
description: "Runs the benchmarks of the specified PR against main thresholds"
push:
branches: [main]
pull_request_review:
types: [submitted]
pull_request_target:
branches: [main]
types: [opened, reopened, synchronize, ready_for_review]
paths:
- Sources/*.swift
- Benchmarks/
- .github/workflows/benchmark.yml

jobs:
benchmark:
if: github.run_attempt > 1 || github.event.review.state == 'approved' || startsWith(github.event_name, 'pull_request') != true
uses: vapor/ci/.github/workflows/run-benchmark.yml@main
uses: vapor/ci/.github/workflows/run-benchmark.yml@mmbm-benchmark-manual
with:
pr_number: ${{ inputs.pr_number }}
secrets: inherit

0 comments on commit 4c37aab

Please sign in to comment.