Skip to content

Commit

Permalink
Log performance
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Dec 2, 2024
1 parent 2a8e5f2 commit 9aa2905
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/csqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ jobs:
id: performance_report
run: echo "PHPCS_PERF_SECS=$(./vendor/bin/phpcs --standard=VariableAnalysis --report=Performance ./PHPMailer.php | grep -Eo 'TOTAL RUN TIME[ ]+[0-9.]+'|awk '{ print $4 }')" >> $GITHUB_OUTPUT

- name: Log performance
run: echo "${{ fromJSON( steps.performance_report.outputs.PHPCS_PERF_SECS ) }}"

- name: Compare performance to baseline
if: ${{ fromJSON( steps.performance_report.outputs.PHPCS_PERF_SECS ) > 0.6 }}
run: exit 1

0 comments on commit 9aa2905

Please sign in to comment.