-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.31 KB
/
Copy pathmain.yml
File metadata and controls
61 lines (51 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: [push, pull_request]
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: ericmj/setup-elixir@14bacb3
with:
otp-version: 22.1
elixir-version: 1.9.4
- name: Install dependencies
run: mix deps.get
- name: Check mix format
run: mix format --check-formatted
- name: Check credo linting
run: mix credo --strict
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pair:
- erlang: 22.1
elixir: 1.9.4
- erlang: 21.3
elixir: 1.8.2
- erlang: 20.3.1
elixir: 1.7.4
- erlang: 19.3
elixir: 1.6.6
- erlang: 18.3
elixir: 1.5.3
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: ericmj/setup-elixir@14bacb3
with:
otp-version: ${{matrix.pair.erlang}}
elixir-version: ${{matrix.pair.elixir}}
- name: Install dependencies
run: |
mix deps.get
mix deps.compile
- name: Run tests
env:
TEST_NPM_TOKEN: ${{ secrets.TEST_NPM_TOKEN }}
run: mix test --trace