File tree Expand file tree Collapse file tree 2 files changed +59
-20
lines changed Expand file tree Collapse file tree 2 files changed +59
-20
lines changed Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments