Skip to content
download

GitHub Action

Setup Elm environment

v6 Latest version

Setup Elm environment

download

Setup Elm environment

Sets up an Elm environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Elm environment

uses: JorelAli/setup-elm@v6

Learn more about this action in JorelAli/setup-elm

Choose a version

Setup Elm GitHub Action

This action sets up an Elm environment to use with projects requiring Elm. It allows you to use the elm command in your workflow.

This GitHub Action is only compatible with Elm 0.19.0 and onwards (and therefore, incompatible with Elm 0.18.0 and below).

Usage

See action.yml

Basic:

steps:
- uses: jorelali/setup-elm@v6
  with:
    elm-version: 0.19.1
- run: elm make src/Main.elm

Running as root (this won't run sudo when moving the elm binary):

steps:
- uses: jorelali/setup-elm@v6
  with:
    elm-version: 0.19.1
    run-as-root: true
- run: elm make src/Main.elm

This option is useful when the GH Action job is using a custom container running in root, such as the Cypress browser containers. You probably won't use this very often!

License

The scripts and documentation in this project are released under the MIT License