A tiny Vue 3 + Vite project you can use to demonstrate CI/CD with GitHub Actions.
It includes unit tests (Vitest + Vue Test Utils) and a workflow that runs on every push and pull request.
make install
make devRun tests:
make test
# or CI-style one-off:
make test-ciRun linting:
make lintThis repo contains a workflow at .github/workflows/node.js.yml that:
- Checks out your code
- Uses Node 20
- Installs dependencies with
make install - Builds the app
- Runs the tests
The job triggers on every push and pull request.
- Open a PR that changes
src/utils/math.js(e.g., break addition) and watch the CI fail. - Fix the code or tests and push again to see CI go green.
- Add a second job (optional) for deploy to GitHub Pages to extend the demo.