mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Try fixing the post-comment benchmark action (#3045)
* Try fixing the post comment benchmark action Store the complete event in PR_INFO Checkout repo for github-action-benchmark * add missing string escape
This commit is contained in:
parent
d14fcd2e2d
commit
9d005432c5
2
.github/workflows/benchmark.yml
vendored
2
.github/workflows/benchmark.yml
vendored
@ -112,7 +112,7 @@ jobs:
|
||||
run: |
|
||||
mkdir artifacts/
|
||||
jq -s . js-framework-benchmark/webdriver-ts/results/*.json | cargo run --manifest-path yew/tools/Cargo.toml --release -p process-benchmark-results > artifacts/results.json
|
||||
echo ${{ github.event.number }} > artifacts/PR_INFO
|
||||
echo "${{ toJSON(github.event) }}" > artifacts/PR_INFO
|
||||
|
||||
- name: Upload result artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
13
.github/workflows/post-benchmark.yml
vendored
13
.github/workflows/post-benchmark.yml
vendored
@ -18,12 +18,16 @@ jobs:
|
||||
workflow: benchmark.yml
|
||||
run_id: ${{ github.event.workflow_run.id }}
|
||||
name: results
|
||||
path: ./artifacts
|
||||
|
||||
# Checkout repo for the github-action-benchmark action
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Test for PR
|
||||
uses: mathiasvr/command-output@v1
|
||||
id: test-pr
|
||||
with:
|
||||
run: cat PR_INFO
|
||||
run: cat artifacts/PR_INFO
|
||||
|
||||
# gh-pages branch is updated and pushed automatically with extracted benchmark data
|
||||
- name: Store benchmark result
|
||||
@ -31,12 +35,13 @@ jobs:
|
||||
with:
|
||||
name: "Yew master branch benchmarks (Lower is better)"
|
||||
tool: "customSmallerIsBetter"
|
||||
output-file-path: results.json
|
||||
output-file-path: artifacts/results.json
|
||||
gh-pages-branch: "gh-pages"
|
||||
# Access token to deploy GitHub Pages branch
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Push and deploy GitHub pages branch automatically
|
||||
alert-threshold: "200%"
|
||||
alert-comment-cc-users: "@yewstack/yew"
|
||||
auto-push: true
|
||||
save-data-file: ${{ steps.test-pr.outputs.stdout == '' }}
|
||||
# Only push when this is a non-pr commit that has been benchmarked, i.e. master
|
||||
auto-push: ${{ fromJSON(steps.test-pr.outputs.stdout).number == '' }}
|
||||
save-data-file: ${{ fromJSON(steps.test-pr.outputs.stdout).number == '' }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user