Skip to content

ci: Run CI on older Ubuntu #3

ci: Run CI on older Ubuntu

ci: Run CI on older Ubuntu #3

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
name: Build and test
runs-on: ubuntu-20.04
strategy:
matrix:
elixir: ["1.12.x", "1.13.x", "1.14.x"]
otp: ["23.x", "24.x", "25.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Run tests
run: mix test