setup-elp allows you to type check your Erlang code, in your CI pipelines, using
eqWAlizer, with
Erlang Language Platform.
jobs:
elp:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: erlef/setup-beam@v1
with:
otp-version: '28.5'
- uses: erlef/setup-elp@v1
- run: elp lint --no-connect
- run: elp eqwalize-all --no-connect --bail-on-errorThe action installs the ELP build for the Erlang/OTP version found on the PATH (erl, e.g.
installed with setup-beam), so install Erlang/OTP first,
with a <major>.<minor> version ELP ships builds for: see the assets of the
ELP releases. Afterwards, elp is
on the PATH for the rest of the job.
See action.yml for the action's specification.
The action supports the following inputs:
with |
Purpose |
|---|---|
elp-version |
ELP version to use: a release tag (e.g. 2026-10-05) or latest (default) |
elp-tarball |
Path or URL of an ELP .tar.gz to use instead of a release (unreleased builds) |
In GitHub Actions, ELP releases newer than 2026-11-19 print the findings of elp lint and
elp eqwalize-all as GitHub workflow commands, with no extra arguments: they
show up as annotations in the workflow run's summary and on the affected lines of the pull
request's "Files changed" tab. With ELP 2026-11-19, pass --format github to get the same.
elp lintthen fails on any finding, warnings included: pass--severity errorto report, and fail on, errors only- pass
--format jsonto get JSON lines instead of annotations - with a job matrix (e.g. several Erlang/OTP versions), run the ELP steps in one job only, or every job reports the same annotations
The action supports the following architectures / platforms:
| arch. | platform |
|---|---|
arm64 |
darwin (GitHub macos-...) |
x64 |
darwin |
arm64 |
linux (GitHub ubuntu-...) |
x64 |
linux |
A complete changelog can be found under GitHub releases.
This project's code of conduct is made explicit in CODE_OF_CONDUCT.md.
First of all, thank you for contributing with your time and patience.
If you want to request a new feature make sure to open an issue so we can discuss it first.
Bug reports and questions are also welcome, but do check you're using the latest version of the action - if you found a bug - and/or search the issue database - if you have a question, since it might have already been answered before.
Contributions will be subject to the MIT License. You will retain the copyright.
For more information check out CONTRIBUTING.md.
License information can be found inside LICENSE.
This project's security policy is made explicit in SECURITY.md.