Skip to content

Commit 21a688d

Browse files
committed
Move CI to GitHub Actions
1 parent fb9e322 commit 21a688d

File tree

2 files changed

+59
-20
lines changed

2 files changed

+59
-20
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
format:
11+
name: Code linting
12+
runs-on: ubuntu-18.04
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Elixir environment
18+
uses: erlef/setup-elixir@v1
19+
with:
20+
otp-version: 21.3
21+
elixir-version: 1.8
22+
23+
- run: mix deps.get
24+
25+
- name: Check formatting
26+
run: mix format --check-formatted
27+
28+
- name: Check compilation warnings
29+
run: mix compile --warnings-as-errors
30+
31+
test:
32+
name: Test suite
33+
runs-on: ubuntu-16.04
34+
35+
strategy:
36+
matrix:
37+
versions:
38+
- otp: 18.3
39+
elixir: 1.4
40+
- otp: 21.3
41+
elixir: 1.8
42+
43+
env:
44+
MIX_ENV: test
45+
46+
steps:
47+
- uses: actions/checkout@v2
48+
49+
- name: Set up Elixir environment
50+
uses: erlef/setup-elixir@v1
51+
with:
52+
elixir-version: ${{ matrix.versions.elixir }}
53+
otp-version: ${{ matrix.versions.otp }}
54+
55+
- name: Install dependencies
56+
run: mix deps.get --only test
57+
58+
- name: Run tests
59+
run: mix test

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)