Skip to content

Commit

Permalink
Write phpbench output to file and upload as artificat
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Oct 29, 2023
1 parent ceebd97 commit c53d3a0
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/test-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,55 +79,38 @@ jobs:
echo '<details><summary>Extractors</summary>'
echo ' '
echo '```shell'
composer test:benchmark -- --ref=1.x --progress=none --group=extractor
echo '```'
echo ' '
echo '</details>'
echo ' '
echo '<details><summary>Transformers</summary>'
echo ' '
echo '```shell'
composer test:benchmark -- --ref=1.x --progress=none --group=transformer
echo '```'
echo ' '
echo '</details>'
echo ' '
echo '<details><summary>Loaders</summary>'
echo ' '
echo '```shell'
composer test:benchmark -- --ref=1.x --progress=none --group=loader
echo '```'
echo ' '
echo '</details>'
echo ' '
echo '<details><summary>Entry Factory</summary>'
echo ' '
echo '```shell'
composer test:benchmark -- --ref=1.x --progress=none --group=entry_factory
echo '```'
echo ' '
echo '</details>'
echo ' '
echo EOF
} >> "$GITHUB_ENV"
} >> "./var/phpbench/summary.txt"
- name: "Find Comment"
uses: peter-evans/find-comment@v2
id: fc
- uses: actions/upload-artifact@v3
with:
token: "${{ secrets.FLOW_BOT_TOKEN }}"
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '# Flow PHP - Benchmarks'

- name: "Create or update comment"
uses: peter-evans/create-or-update-comment@v3
with:
token: "${{ secrets.FLOW_BOT_TOKEN }}"
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: ${{ env.COMMENT_CONTENT }}
edit-mode: replace
name: phpbench
path: ./var/phpbench/summary.txt

- name: "Set job summary"
run: |
Expand Down

0 comments on commit c53d3a0

Please sign in to comment.