Skip to content

Commit

Permalink
Updated benchmark tag workflow (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech authored Oct 16, 2023
1 parent 5ef5f77 commit 7536c9d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/benchmark-tag.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Benchmark History Tag

on:
workflow_dispatch:
inputs:
tag_name:
description: 'Git Tag Name'
required: true
default: '1.x'
push:
branches: [ 1.x ]

Expand All @@ -23,6 +29,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
ref: refs/tags/${{ github.event.inputs.tag_name }}

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -52,9 +60,12 @@ jobs:
uses: "actions/cache@v3"
with:
path: "var/phpbench"
key: "php-${{ matrix.php-version }}-phpbench"
key: "php-${{ matrix.php-version }}-${{ github.event.inputs.tag_name }}-phpbench"
restore-keys: |
php-${{ matrix.php-version }}-phpbench-
php-${{ matrix.php-version }}-${{ github.event.inputs.tag_name }}-phpbench-
- name: Adding main headline
run: echo '# Flow PHP - Benchmark - ${{ github.event.inputs.tag_name }}' >> $GITHUB_STEP_SUMMARY

- name: "Benchmark Tag"
run: "composer test:benchmark -- --tag=original --progress=plain"
- name: "Benchmark"
run: "composer test:benchmark -- --tag=${{ github.event.inputs.tag_name }} --progress=none >> $GITHUB_STEP_SUMMARY"

0 comments on commit 7536c9d

Please sign in to comment.