gleam-lang/setup-erlang
👷 Erlang/OTP on GitHub Actions
{ "createdAt": "2019-11-17T15:49:24Z", "defaultBranch": "main", "description": "👷 Erlang/OTP on GitHub Actions", "fullName": "gleam-lang/setup-erlang", "homepage": "", "language": "PowerShell", "name": "setup-erlang", "pushedAt": "2023-09-08T08:06:43Z", "stargazersCount": 22, "topics": [ "ci", "erlang", "github-actions", "otp" ], "updatedAt": "2023-04-03T21:21:38Z", "url": "https://github.com/gleam-lang/setup-erlang"}setup-erlang
Section titled “setup-erlang”This project is deprecated
Section titled “This project is deprecated”Check out this excellent replacement: https://github.com/erlef/setup-beam/
Description
Section titled “Description”A GitHub action that installs Erlang/OTP for use in your CI workflow.
At present it supports Ubuntu Linux and Windows.
Basic example
Section titled “Basic example”on: push
jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.0.0 - uses: gleam-lang/setup-erlang@v1.1.3 with: otp-version: "23.2" - run: rebar3 eunitMatrix example
Section titled “Matrix example”on: push
jobs: test: runs-on: ubuntu-latest name: OTP ${{matrix.otp}} strategy: matrix: otp: ["23.1", "23.2"] steps: - uses: actions/checkout@v2.0.0 - uses: gleam-lang/setup-erlang@v1.1.3 with: otp-version: ${{matrix.otp}} - run: rebar3 eunitPostgresql example
Section titled “Postgresql example”on: push
jobs: test: runs-on: ubuntu-latest
services: db: image: postgres:11 ports: ['5432:5432'] options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps: - uses: actions/checkout@v2.0.0 - uses: gleam-lang/setup-erlang@v1.1.3 with: otp-version: "23.2" - run: rebar3 eunitWindows example
Section titled “Windows example”on: push
jobs: test: runs-on: windows-latest steps: - uses: actions/checkout@v2.0.0 - name: Install Erlang/OTP uses: gleam-lang/setup-erlang@v1.1.3 with: otp-version: "23.2" id: install_erlang - name: Run erl # Print the Erlang version run: | $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH" & erl.exe -eval 'erlang:display({otp_release, erlang:system_info(otp_release)}), halt().' -noshell