Skip to content

Commit

Permalink
Move to manual benchmarking (#122)
Browse files Browse the repository at this point in the history
* Move to manual benchmarking

* back to main branch for benchmarks
  • Loading branch information
MahdiBM authored Feb 10, 2025
1 parent f21ece1 commit e968482
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
17 changes: 7 additions & 10 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:
sha:
type: string
required: true
description: "The commit SHA to run the benchmarks against."
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
with:
sha: ${{ inputs.sha }}
secrets: inherit
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { branches: ['*'] }
push: { branches: ['main'] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"cpuUser": 540000000
"cpuUser": 530000000
}

0 comments on commit e968482

Please sign in to comment.