chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.5.0 Latest 5 packages
0
0
# The workspace used as people use it, as `just e2e` runs it: in Chromium,
# signed in through the reference PDS's own pages, over a world seeded for
# the run (harness/e2e/world.mjs): the launcher, tiles, the strip, the
# player, an agent's tile over MCP, sharing. The other checks hold the code
# to its types and tests; this, that what a person does lands. Each flow
# that fails leaves the page as it was then among the check's outputs, as a
# picture.
#
# Node, the packages, Chromium, the libraries it needs and the build are
# kept between runs: nothing is fetched again until what it is made from
# changes.
image: rust:1.100
runners: [runner.knotless.dev]
# Every push to main, and pulls into it or a feature/ branch, at their
# heads merged with their base, that change the pages, the server, its
# views and lexicons, the world and harness the flows run over, or this
# file. A pull changing none passes at once, noted as skipped.
on:
push: {refs: [refs/heads/main]}
pull:
base: [refs/heads/main, refs/heads/feature/*]
paths: [web/**, crates/**, views/**, schemas/**, lexicons/**, Cargo.toml, Cargo.lock, harness/e2e/**, harness/pds.mjs, harness/tls-proxy.mjs, harness/package.json, harness/package-lock.json, .knotless/workflows/e2e.yml, .knotless/uses.lock]
cache: [target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, /opt/browsers, /var/cache/apt/archives, web/node_modules, harness/node_modules]
env:
# The image's toolchain, over the cached rustup's default (check.yml).
RUSTUP_TOOLCHAIN: "1.100.0"
PLAYWRIGHT_BROWSERS_PATH: /opt/browsers
steps:
- uses: chadtmiller.com/steps/node@1
with: {version: 24.22.1}
- uses: chadtmiller.com/steps/npm-ci@1
name: pages' packages
with: {dir: web}
- uses: chadtmiller.com/steps/npm-ci@1
name: harness
with: {dir: harness}
- name: chromium
run: |
cd harness
# The browser, into /opt/browsers once for each Playwright version.
npx playwright install chromium
# The libraries it needs, as Playwright installs them with apt. Its
# .debs are kept in the cache, so a run after the first downloads
# none, only apt's lists; the image deletes them after each install
# (docker-clean) unless told not to. (Playwright's --dry-run, which
# knotless's e2e reads the packages from, now asks apt itself, and
# fails before any lists are fetched.)
rm -f /etc/apt/apt.conf.d/docker-clean
npx playwright install-deps chromium > /tmp/deps.log 2>&1 || { cat /tmp/deps.log; exit 1; }
tail -1 /tmp/deps.log
- name: build
run: |
# The pages first: hud-server embeds them.
(cd web && npm run build)
cargo build -p hud --locked
- name: flows
run: |
status=0
(cd harness && npx playwright test -c e2e/playwright.config.mjs) || status=$?
# The page each failed flow ended on, named for the flow.
if [ -n "${KNOTLESS_RUN_OUTPUTS:-}" ] && [ -d target/e2e/results ]; then
for shot in target/e2e/results/*/test-failed-*.png; do
[ -f "$shot" ] && cp "$shot" "$KNOTLESS_RUN_OUTPUTS/$(basename "$(dirname "$shot")").png"
done
fi
exit $status