ci: add GitHub Actions workflow to deploy to GitHub Pages

Add deploy.yml workflow that runs tests, builds, and deploys to
GitHub Pages on push to main. Add vite.config.js with base path
for subdirectory hosting. Include deployment spec.
This commit is contained in:
2026-04-12 19:07:02 +07:00
parent a57fda7ba4
commit c8b988fd8d
4 changed files with 210 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ npm run test:watch # Run tests in watch mode
npx vitest run src/fruits.test.js # Run a single test file
```
No vite.config or vitest.config files — both use defaults.
`vite.config.js` sets `base` for GitHub Pages deployment. No vitest.config uses defaults.
## Architecture