项目作者: gleam-lang

项目描述 :
👷 Erlang/OTP on GitHub Actions
高级语言: PowerShell
项目地址: git://github.com/gleam-lang/setup-erlang.git
创建时间: 2019-11-17T15:49:24Z
项目社区:https://github.com/gleam-lang/setup-erlang

开源协议:Apache License 2.0

下载


setup-erlang

This project is deprecated

Check out this excellent replacement: https://github.com/erlef/setup-beam/

Description

A GitHub action that installs Erlang/OTP for use in your CI workflow.

At present it supports Ubuntu Linux and Windows.

Usage

Basic example

  1. on: push
  2. jobs:
  3. test:
  4. runs-on: ubuntu-latest
  5. steps:
  6. - uses: actions/checkout@v2.0.0
  7. - uses: gleam-lang/setup-erlang@v1.1.3
  8. with:
  9. otp-version: "23.2"
  10. - run: rebar3 eunit

Matrix example

  1. on: push
  2. jobs:
  3. test:
  4. runs-on: ubuntu-latest
  5. name: OTP ${{matrix.otp}}
  6. strategy:
  7. matrix:
  8. otp: ["23.1", "23.2"]
  9. steps:
  10. - uses: actions/checkout@v2.0.0
  11. - uses: gleam-lang/setup-erlang@v1.1.3
  12. with:
  13. otp-version: ${{matrix.otp}}
  14. - run: rebar3 eunit

Postgresql example

  1. on: push
  2. jobs:
  3. test:
  4. runs-on: ubuntu-latest
  5. services:
  6. db:
  7. image: postgres:11
  8. ports: ['5432:5432']
  9. options: >-
  10. --health-cmd pg_isready
  11. --health-interval 10s
  12. --health-timeout 5s
  13. --health-retries 5
  14. steps:
  15. - uses: actions/checkout@v2.0.0
  16. - uses: gleam-lang/setup-erlang@v1.1.3
  17. with:
  18. otp-version: "23.2"
  19. - run: rebar3 eunit

Windows example

  1. on: push
  2. jobs:
  3. test:
  4. runs-on: windows-latest
  5. steps:
  6. - uses: actions/checkout@v2.0.0
  7. - name: Install Erlang/OTP
  8. uses: gleam-lang/setup-erlang@v1.1.3
  9. with:
  10. otp-version: "23.2"
  11. id: install_erlang
  12. - name: Run erl
  13. # Print the Erlang version
  14. run: |
  15. $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
  16. & erl.exe -eval 'erlang:display({otp_release, erlang:system_info(otp_release)}), halt().' -noshell