A GitHub Action that installs miso (the
command line tool for miso apps: MicroHs,
MicroCabal, and miso) from a release, and builds and tests the project of
miso.yml.
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: haskell-miso/setup-miso@v1 # miso build, then miso test| input | default | |
|---|---|---|
version |
latest |
the release to install, such as v0.1.0 |
working-directory |
. |
the directory of miso.yml |
build |
true |
run miso build (false: only install miso) |
lint |
false |
run miso lint before the build |
test |
auto |
after the build: auto runs miso test when miso.yml has a tests: section, true always runs it, false runs nothing, and anything else is a shell command (such as miso test spec -- --fast) |
emscripten |
auto |
set up emscripten: auto (when miso.yml has a browser or browser_js target), none, or a version |
cache |
true |
cache the installed packages and browser runtimes (keyed on miso.yml and miso.lock), and emscripten (in .emsdk-cache in the workspace, keyed on its version) |
It puts miso on the PATH for the later steps, and sets MISO_HOME; its
outputs are version and miso-home. It runs on Linux and macOS (on
Windows, run install.sh in an MSYS2 shell).