Frontend checks in CI
A step of the Cloud application tree on Gradus, in the Frontend area: Second app, UI, browser tests.
Lint, type check, unit tests, a size budget and a production build of the frontend on every push, with development-only code kept out of what ships.
Usually comes after: The first journey in the browser.
Prompt for your AI assistant
Add the frontend's checks to CI: lint, type check, unit tests and a production build on every push and pull request, as a job in the existing workflow for a workspace or as the frontend repository's own workflow. Cache dependencies, fail on warnings in the build and publish the built files as a workflow artifact. Set a size budget for the JavaScript the first page loads and fail when it is exceeded. Keep development-only code such as fixtures, debug pages and unreleased features out of the production build behind a build-time switch, and add a check that searches the built files for a marker from each.This is https://gradus.kazet.blog/tree/cloud-application/step/frontend-ci as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.