# Formatting and lints, as `just check` runs them for the Rust: rustfmt, # then clippy over the workspace, warnings denied. hud-server embeds the # built pages (its build.rs reads web/dist), so they are built first; test.yml # runs the tests. # # The image is the Rust `rustup run stable` gives locally, so a newer # release's new lints land on purpose. The build, the toolchain's # components, Node and the pages' packages are kept between runs, so a push # lints only what it changed. image: rust:1.100 # A pre-flight: the merge queue takes a pull into a batch only once this # has passed at its head, so one that does not build fails no batch. queue: first runners: [runner.knotless.dev] # Pushes to main, and pulls into it or a feature/ branch, at their heads # merged with their base. on: push: {refs: [refs/heads/main]} pull: {base: [refs/heads/main, refs/heads/feature/*]} cache: [target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, web/node_modules] env: # The image's version: the cached /usr/local/rustup hides the image's own # and keeps the default of the first image that filled it, so rustup # installs this one into the cache on the first run that names it. RUSTUP_TOOLCHAIN: "1.100.0" 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} - name: pages run: cd web && npm run build - uses: chadtmiller.com/steps/rust-lint@1