Fix js-benchmark action (#3202)

* temp

* test2

* test3

* no ts

* more

* manifest

* fix warning
This commit is contained in:
Julius Lungys 2023-04-02 00:23:53 +03:00 committed by GitHub
parent ecd80d981e
commit 48dd69cdc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,6 @@ jobs:
cache-dependency-path: js-framework-benchmark/package-lock.json
- uses: Swatinem/rust-cache@v2
with:
working-directory: yew
- name: setup js-framework-benchmark
working-directory: js-framework-benchmark
@ -111,12 +109,12 @@ jobs:
- name: js-framework-benchmark/webdriver-ts npm run bench
working-directory: js-framework-benchmark/webdriver-ts
run: xvfb-run npm run tsbench -- --framework keyed/yew keyed/yew-hooks --runner playwright
run: xvfb-run npm run bench -- --framework keyed/yew keyed/yew-hooks --runner playwright
- name: transform results to be fit for display benchmark-action/github-action-benchmark@v1
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
jq -s . js-framework-benchmark/webdriver-ts/results/*.json | cargo run --manifest-path yew/Cargo.toml --release -p process-benchmark-results > artifacts/results.json
echo "$EVENT_INFO" > artifacts/PR_INFO
env:
EVENT_INFO: ${{ toJSON(github.event) }}