Add elixir CI

This commit is contained in:
Ben Busby 2021-10-26 21:21:00 -06:00 committed by GitHub
parent e87973c5e5
commit 83bcad2eda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

31
.github/workflows/elixir.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Elixir CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
with:
elixir-version: '1.10.3'
otp-version: '22.3'
- 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