Skip to content

Commit

Permalink
Move CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed Nov 9, 2020
1 parent c2c2ae1 commit 6ce04fd
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 20 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on: [push, pull_request]

jobs:
format:
name: Code formatting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install OTP and Elixir
uses: actions/setup-elixir@v1
with:
otp-version: 20.3
elixir-version: 1.7

- name: Check format
run: mix format --check-formatted

test:
name: Test suite
runs-on: ubuntu-latest

strategy:
matrix:
pair:
- erlang: 18.3
elixir: 1.4
- erlang: 19.3
elixir: 1.5
- erlang: 20.3
elixir: 1.6
- erlang: 21.0
elixir: 1.7

env:
MIX_ENV: test

steps:
- uses: actions/checkout@v2

- name: Install OTP and Elixir
uses: actions/setup-elixir@v1
with:
otp-version: ${{ matrix.pair.erlang }}
elixir-version: ${{ matrix.pair.elixir }}

- name: Install dependencies
run: mix deps.get

- name: Run tests
run: mix test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 6ce04fd

Please sign in to comment.