feat(htmlcs): add runtime extending and rules set #678
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bench Compare | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
checkout_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- node-version: 18.x | |
- node-version: latest | |
steps: | |
- name: Checkout code from ${{ github.repository }} | |
uses: actions/checkout@v3 | |
- name: Install | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install yarn | |
run: corepack enable && corepack prepare yarn@stable --activate | |
- name: Wasm pack build modules | |
run: cd kayle_innate && wasm-pack build --release --target nodejs && cd ../ | |
- name: Install and build locales | |
run: yarn --no-immutable && yarn build && npx playwright install --with-deps chromium | |
- name: Run Bench playwright fast_axecore | |
run: cd ./kayle && yarn bench:playwright:axe | |
- name: Run Bench playwright fast_htmlcs | |
run: cd ./kayle && yarn bench:playwright:htmlcs |