Skip to content

Commit

Permalink
test: add perftest visual report in job artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdrv committed May 13, 2024
1 parent 24e3dbb commit 4774591
Show file tree
Hide file tree
Showing 3 changed files with 1,506 additions and 1,411 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/performance-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,16 @@ jobs:
./current/.perftool/cache/
- name: Run performance test
run: |
cd current
npx perftool --baselineRefDir ../baseline -o perftest/pr-result.json --baselineOutputPath perftest/base-result.json --compareOutputPath perftest/comparison.json --baseBranchRef ${{ github.event.pull_request.base.sha }} --currentBranchRef ${{ github.event.pull_request.head.sha }}
run: >
cd current &&
npx perftool
--baselineRefDir ../baseline
-o perftest/pr-result.json
--baselineOutputPath perftest/base-result.json
--compareOutputPath perftest/comparison.json
--visualReportPath perftest/report.html
--baseBranchRef ${{ github.event.pull_request.base.sha }}
--currentBranchRef ${{ github.event.pull_request.head.sha }}
- name: Save perftool cache
run: >
Expand All @@ -149,7 +156,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Component performance comparison result
path: ${{ github.workspace }}/current/perftest/*.json
path: ${{ github.workspace }}/current/perftest/*

- name: Write report comment
if: always()
Expand Down
Loading

0 comments on commit 4774591

Please sign in to comment.