From c53d3a0e378edce843231471e9737471dcd1d863 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sun, 29 Oct 2023 14:57:54 +0100 Subject: [PATCH] Write phpbench output to file and upload as artificat --- .github/workflows/test-benchmark.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test-benchmark.yml b/.github/workflows/test-benchmark.yml index 6a23ff853..dfa53ca67 100644 --- a/.github/workflows/test-benchmark.yml +++ b/.github/workflows/test-benchmark.yml @@ -79,7 +79,6 @@ jobs: echo '
Extractors' echo ' ' echo '```shell' - composer test:benchmark -- --ref=1.x --progress=none --group=extractor echo '```' echo ' ' echo '
' @@ -87,7 +86,6 @@ jobs: echo '
Transformers' echo ' ' echo '```shell' - composer test:benchmark -- --ref=1.x --progress=none --group=transformer echo '```' echo ' ' echo '
' @@ -95,7 +93,6 @@ jobs: echo '
Loaders' echo ' ' echo '```shell' - composer test:benchmark -- --ref=1.x --progress=none --group=loader echo '```' echo ' ' echo '
' @@ -103,31 +100,17 @@ jobs: echo '
Entry Factory' echo ' ' echo '```shell' - composer test:benchmark -- --ref=1.x --progress=none --group=entry_factory echo '```' echo ' ' echo '
' 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: |