Skip to content

github actions

github actions #3

Workflow file for this run

name: Tests
on:
push:
pull_request:
branches:
- main
jobs:
tests:
name: Run tests (Elixir ${{matrix.elixir}}, OTP ${{matrix.otp}}), OS ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.6.6"
otp: "19.0"
os: ubuntu-18.04
- elixir: "1.17"
otp: "27.0"
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps and _build cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Install dependencies
run: mix deps.get --only test
- name: Run tests
run: |
epmd -daemon
mix test