Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github actions workflow for testing #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on: [push, pull_request]

jobs:
test:
name: Test

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-18.04]
elixir: [1.7.x, 1.8.x, 1.9.x, 1.10.x, 1.11.x]
otp: [21.x, 22.x, 23.x]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

- name: Install dependencies
run: mix deps.get

- name: Compile test env
run: mix compile
env:
MIX_ENV: test

- name: Run tests
run: mix test