Skip to content

Set up your GitHub Actions workflow with OTP and Elixir

License

Notifications You must be signed in to change notification settings

aai/setup-elixir

This branch is 53 commits behind actions/setup-elixir:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5731c77 · Aug 29, 2019

History

11 Commits
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019
Aug 29, 2019
Aug 28, 2019
Aug 28, 2019
Aug 28, 2019

Repository files navigation

setup-elixir

This actions sets up an Elixir environment for use in Actions by:

  • Installing OTP
  • Installing Elixir

Note Currently, this action currently only supports Actions' ubuntu- runtimes.

Usage

See action.yml.

Note The OTP release version specification is relatively complex. For best results, the current recommendation is to use a full exact version spec from the list available from Erlang Solutions.

Basic example

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions/[email protected]
        with:
          otp-version: 22.x
          elixir-version: 1.9.x
      - run: mix deps.get
      - run: mix test

Matrix example

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
    strategy:
      matrix:
        otp: [20.x, 21.x, 22.x]
        elixir: [1.8.x, 1.9.x]
    steps:
      - uses: actions/[email protected]
      - uses: actions/[email protected]
        with:
          otp-version: ${{matrix.otp}}
          elixir-version: ${{matrix.elixir}}
      - run: mix deps.get
      - run: mix test

Phoenix 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/[email protected]
      - uses: actions/[email protected]
        with:
          otp-version: 22.x
          elixir-version: 1.9.x
      - run: mix deps.get
      - run: mix test

License

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

Contributing

Check out this doc.

Current Status

This action is in active development.

About

Set up your GitHub Actions workflow with OTP and Elixir

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 50.7%
  • Shell 24.7%
  • Elixir 24.6%