Fix benchmark (#3827)

This commit is contained in:
Siyuan Yan 2025-03-20 14:40:51 +09:00 committed by GitHub
parent ecd4832670
commit b6232af5b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -118,11 +118,12 @@ jobs:
npm start & npm start &
sleep 5 sleep 5
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
- run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Run js-framework-benchmark/webdriver-ts npm run bench - name: Run js-framework-benchmark/webdriver-ts npm run bench
working-directory: js-framework-benchmark/webdriver-ts working-directory: js-framework-benchmark/webdriver-ts
run: xvfb-run npm run bench -- --framework keyed/yew keyed/yew-hooks --runner playwright --chromeBinary "${{ steps.setup-chrome.outputs.chrome-path }}" run: xvfb-run npm run bench -- --framework keyed/yew keyed/yew-hooks --runner playwright --chromeBinary "${{ steps.setup-chrome.outputs.chrome-path }}"
env:
CHROME_DEVEL_SANDBOX: ${{ steps.setup-chrome.outputs.chrome-path }}/../chrome_sandbox
- name: Transform results to be fit for display benchmark-action/github-action-benchmark@v1 - name: Transform results to be fit for display benchmark-action/github-action-benchmark@v1
run: | run: |