* Init workflow for running tests

This commit is contained in:
Anthony Mineo 2021-10-13 12:51:10 -04:00 committed by GitHub
parent 31b880d505
commit a79292e636
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: [ master ]
pull_request:
branches: [ master ]
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.12.2'
otp-version: '24.0.4'
- 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