Run benchmarks when PR gets merged (#3022)

This commit is contained in:
Elijah Ahianyo 2024-04-08 11:22:25 -07:00 committed by GitHub
parent 67702e0927
commit a5d3ba419c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,9 @@
name: benchmarking name: benchmarking
on: on:
push: pull_request:
branches: [main] types:
- closed
paths-ignore: paths-ignore:
- '**/*.md' - '**/*.md'
@ -22,6 +23,7 @@ env:
jobs: jobs:
reflex-web: reflex-web:
if: github.event.pull_request.merged == true
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -71,6 +73,7 @@ jobs:
GITHUB_SHA: ${{ github.sha }} GITHUB_SHA: ${{ github.sha }}
simple-apps-benchmarks: simple-apps-benchmarks:
if: github.event.pull_request.merged == true
env: env:
OUTPUT_FILE: benchmarks.json OUTPUT_FILE: benchmarks.json
timeout-minutes: 50 timeout-minutes: 50
@ -132,6 +135,7 @@ jobs:
--event-type "${{ github.event_name }}" --actor "${{ github.actor }}" --pr-id "${{ github.event.pull_request.id }}" --event-type "${{ github.event_name }}" --actor "${{ github.actor }}" --pr-id "${{ github.event.pull_request.id }}"
reflex-build-size: reflex-build-size:
if: github.event.pull_request.merged == true
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
# Prioritize getting more information out of the workflow (even if something fails) # Prioritize getting more information out of the workflow (even if something fails)
@ -159,6 +163,7 @@ jobs:
--measurement-type "reflex-build" --path ./dist --measurement-type "reflex-build" --path ./dist
reflex-plus-dependency-size: reflex-plus-dependency-size:
if: github.event.pull_request.merged == true
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
# Prioritize getting more information out of the workflow (even if something fails) # Prioritize getting more information out of the workflow (even if something fails)