mirror of
https://github.com/ruvnet/RuView
synced 2026-08-01 19:01:42 +00:00
53f52bbe74
Two post-merge CI failures:
1. nvsim Dashboard → GitHub Pages: `wasm-pack: command not found`.
`cargo install wasm-pack --locked` doesn't reliably leave the binary
on PATH inside subsequent steps. Switched both Pages + a11y workflows
to the canonical wasm-pack installer:
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
which deposits to /home/runner/.cargo/bin/ that's already on PATH.
2. nvsim-server → ghcr.io: cargo can't resolve workspace.dependencies
because the partial Cargo.toml copies only two crates. Dockerfile now
generates a stub workspace Cargo.toml inline that lists just nvsim +
nvsim-server with the workspace-deps section copied verbatim.
Co-Authored-By: claude-flow <ruv@ruv.net>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Dashboard a11y + cross-browser
|
|
|
|
# Runs axe-core a11y assertions on the built dashboard across
|
|
# Chromium, Firefox, and WebKit. Closes ADR-092 §11.5 (axe-core)
|
|
# and §11.8 (cross-browser).
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: ['dashboard/**', 'v2/crates/nvsim/**']
|
|
pull_request:
|
|
paths: ['dashboard/**']
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
a11y:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with: { targets: wasm32-unknown-unknown }
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Build nvsim WASM
|
|
working-directory: v2
|
|
run: |
|
|
wasm-pack build crates/nvsim --target web \
|
|
--out-dir ../../dashboard/public/nvsim-pkg \
|
|
--release -- --no-default-features --features wasm
|
|
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 20, cache: npm, cache-dependency-path: dashboard/package-lock.json }
|
|
|
|
- working-directory: dashboard
|
|
run: |
|
|
npm ci
|
|
npm install --save-dev @playwright/test @axe-core/playwright
|
|
npx playwright install --with-deps
|
|
npm run build
|
|
npx playwright test
|