test: add frontend test suite
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 43s
Some checks failed
Deploy to Frontend Servers / deploy (push) Failing after 43s
This commit is contained in:
@@ -34,6 +34,7 @@ npm run dev # start Vite dev server
|
||||
npx tsc --noEmit # TypeScript check; CI requires this
|
||||
npm run format:check # Prettier check; CI requires this
|
||||
npm run format # format source files
|
||||
npm test # run Vitest test suite
|
||||
npm run build # production build to dist/
|
||||
npm run preview # preview built app locally
|
||||
```
|
||||
@@ -43,6 +44,7 @@ Before pushing, run at least:
|
||||
```bash
|
||||
npx tsc --noEmit
|
||||
npm run format:check
|
||||
npm test
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
@@ -86,7 +88,7 @@ Important config files:
|
||||
|
||||
- `main` is the deploy branch. Pushing to `main` triggers `.gitea/workflows/deploy.yml`.
|
||||
- `terry-staging` exists as a staging/work branch for later work.
|
||||
- The deploy workflow runs `npm ci`, `npx tsc --noEmit`, `npm run format:check`, `npm run build`, then rsyncs `dist/` to both frontend servers and verifies matching checksums.
|
||||
- The deploy workflow runs `npm ci`, `npx tsc --noEmit`, `npm run format:check`, `npm test`, `npm run build`, then rsyncs `dist/` to both frontend servers and verifies matching checksums.
|
||||
|
||||
See also:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user