Playground for actionlint
This is a development directory for actionlint playground.
The playground is built with HTML/CSS/TypeScript/Wasm and bundled by Vite. All dependencies are
defined in package.json and managed by npm. Tasks for development are defined in Makefile.
Layout
| Path |
Contents |
index.html |
Vite entry point |
src/ |
TypeScript sources, ambient types and the stylesheet |
public/ |
main.wasm and the Go toolchain's wasm_exec.js, both generated |
dist/ |
Bundle produced by vite build |
vite.config.ts |
Build and test configuration |
Tasks
# Install dependencies, build the wasm binary and the bundle, then serve it at localhost:1234
make serve
# Install dependencies, build the wasm binary and the bundle
make build
# Install dependencies
make dep
# Run tests
make test
# Clean all built files
make clean
npm run dev starts the Vite dev server with hot reloading against an already built public/main.wasm.
Lint
Sources are linted with eslint with typescript-eslint,
and type-checked separately:
npm run lint
Formatting is handled from the repository root by dprint. See .dprint.jsonc.
Deployment
The Pages workflow deploys dist/ on every push to main. See
CONTRIBUTING.md for more details.