2019-08-06 16:37:30 -07:00
|
|
|
name: Elixir CI
|
2019-07-29 09:38:23 -07:00
|
|
|
|
2019-08-06 16:37:30 -07:00
|
|
|
on: push
|
2019-07-29 09:38:23 -07:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2019-08-06 16:37:30 -07:00
|
|
|
|
2019-07-29 09:38:23 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
2019-08-05 12:36:53 -04:00
|
|
|
container:
|
|
|
|
|
image: elixir:1.9.1-slim
|
|
|
|
|
|
|
|
|
|
steps:
|
2019-08-14 10:43:09 -04:00
|
|
|
- uses: actions/checkout@v1
|
2019-11-07 12:34:15 -06:00
|
|
|
- name: Cache Mix Dependencies
|
|
|
|
|
uses: actions/cache@v1
|
|
|
|
|
with:
|
|
|
|
|
path: deps
|
|
|
|
|
key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.OS }}-mix-
|
2019-08-05 12:36:53 -04:00
|
|
|
- name: Install Dependencies
|
2019-07-29 09:38:23 -07:00
|
|
|
run: |
|
2019-08-05 12:36:53 -04:00
|
|
|
mix local.rebar --force
|
|
|
|
|
mix local.hex --force
|
2019-07-29 09:38:23 -07:00
|
|
|
mix deps.get
|
2019-11-07 12:34:15 -06:00
|
|
|
- name: Cache Build Files
|
|
|
|
|
uses: actions/cache@v1
|
|
|
|
|
with:
|
|
|
|
|
path: _build
|
|
|
|
|
key: ${{ runner.OS }}-build-${{ github.sha }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.OS }}-build-
|
2019-08-05 12:36:53 -04:00
|
|
|
- name: Run Tests
|
2019-07-29 09:38:23 -07:00
|
|
|
run: mix test
|