Skip to content

Commit

Permalink
Setting up github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
naps62 committed Nov 30, 2020
1 parent 5f8d8e6 commit ef344e7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test Suite

on:
push:
branches:
- master
tags:
- "*"
pull_request:
types: [opened, synchronize]

jobs:
test:
strategy:
matrix:
elixir: ['1.8', '1.9', '1.10', '1.11']

runs-on: ubuntu-latest
container:
image: elixir:${{ matrix.elixir }}-alpine
env:
MIX_ENV: test

steps:
- uses: actions/checkout@v2

- name: Setup Deps Cache
uses: actions/cache@v1
with:
path: deps
key: v1-deps-${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
v1-deps-${{ runner.os }}-
- name: Setup Build Cache
uses: actions/cache@v1
with:
path: _build
key: v1-build-${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
v1-build-${{ runner.os }}-
- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- run: mix deps.compile
- run: mix compile
- run: mix test

0 comments on commit ef344e7

Please sign in to comment.