Skip to content

Merge pull request #98 from kianmeng/support-erlang-26-elixir-15 #39

Merge pull request #98 from kianmeng/support-erlang-26-elixir-15

Merge pull request #98 from kianmeng/support-erlang-26-elixir-15 #39

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- master
jobs:
test:
name: Elixir ${{matrix.pair.elixir}} / OTP ${{matrix.pair.otp}}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- pair:
elixir: "1.11.x"
otp: "22.x"
- pair:
elixir: "1.15.x"
otp: "26.x"
lint: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.pair.elixir }}
otp-version: ${{ matrix.pair.otp }}
- name: Restore deps cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('**/mix.lock') }}
deps-${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}
- name: Install package dependencies
run: mix deps.get
- name: Check code format
run: mix format --check-formatted
if: ${{ matrix.lint }}
- name: Compile dependencies
run: mix compile
env:
MIX_ENV: test
- name: Run unit tests
run: mix test