chadtmiller.com/group-host
atmosphere group host
0
0
# The console's checks, as `just lint` runs them: that it, the harness,
# the docs site and the examples are formatted as `just fmt` leaves them
# (oxfmt), that each component uses only its own layer and those below
# (harness/layers.mjs), that every dialog's title is its own fixed words
# (harness/dialogs.mjs), that every word a page shows is a message
# (harness/strings.mjs), and svelte-check, which fails on any warning;
# then that each example app still types against the lexicons. The
# packages are kept between runs and installed again only when a lockfile
# changes.
image: node:24.22.1
# The shared runner host, as every workflow here.
runners: [runner.knotless.dev]
# Pushes to main, and pulls that change the pages, the lexicons their
# types are made from, the harness, the docs site, the examples,
# the format's settings 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/**, lexicons/**, harness/**, docs-site/**, examples/**, .oxfmtrc.json, .knotless/workflows/web.yml, .knotless/uses.lock]
cache: [web/node_modules, examples/read-a-group/node_modules, examples/join-a-group/node_modules]
steps:
- uses: chadtmiller.com/steps/npm-ci@1
name: packages
with: {dir: web}
- name: format
run: web/node_modules/.bin/oxfmt --check web harness docs-site examples
- name: layers
run: node harness/layers.mjs
- name: dialogs
run: node harness/dialogs.mjs
- name: strings
run: node harness/strings.mjs
- name: svelte-check
run: cd web && npm run check
- name: build
run: cd web && npm run build
- uses: chadtmiller.com/steps/npm-ci@1
name: read-a-group packages
with: {dir: examples/read-a-group}
- name: read-a-group
run: cd examples/read-a-group && npm run check
- uses: chadtmiller.com/steps/npm-ci@1
name: join-a-group packages
with: {dir: examples/join-a-group}
- name: join-a-group
run: cd examples/join-a-group && npm run check