Skip to content

Upgrade elixir

Upgrade elixir #27

Workflow file for this run

name: Elixir CI
on:
pull_request:
jobs:
build:
name: Build and test
runs-on: ubuntu-22.04
env:
MIX_ENV: test
ELIXIR_ENV: test
strategy:
matrix:
otp: ["24.3.4", "26.1.2"]
elixir: ["1.15.7"]
# exclude:
# Example, but this doesn't need excluded
# - otp: '22.3.4'
# elixir: '1.12.3'
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
- name: Formatter
run: mix format --check-formatted