Skip to content

Commit 0ba2585

Browse files
Add github actions workflow
1 parent 346581c commit 0ba2585

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: Test
8+
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
matrix:
13+
os: [ubuntu-18.04]
14+
elixir: [1.7.x, 1.8.x, 1.9.x, 1.10.x, 1.11.x]
15+
otp: [22.x, 23.x]
16+
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Elixir
22+
uses: actions/setup-elixir@v1
23+
with:
24+
elixir-version: ${{ matrix.elixir }}
25+
otp-version: ${{ matrix.otp }}
26+
27+
- name: Install dependencies
28+
run: mix deps.get
29+
30+
- name: Compile test env
31+
run: mix compile
32+
env:
33+
MIX_ENV: test
34+
35+
- name: Run tests
36+
run: mix test

0 commit comments

Comments
 (0)