File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ jobs :
7+ linux :
8+ runs-on : ubuntu-latest
9+ name : Linux ${{ matrix.elixir }}, ${{ matrix.otp }}
10+ strategy :
11+ matrix :
12+ elixir : ["1.17.3"]
13+ otp : ["27.1.2"]
14+ env :
15+ MIX_ENV : test
16+ steps :
17+ - uses : actions/checkout@v2
18+ - uses : erlef/setup-beam@v1
19+ with :
20+ otp-version : ${{ matrix.otp }}
21+ elixir-version : ${{ matrix.elixir }}
22+ - name : Install dependencies
23+ run : mix deps.get
24+ - name : Compile and check warnings
25+ run : mix compile --warnings-as-errors
26+ - name : Check formatting
27+ run : mix format --check-formatted
28+ - name : Run tests
29+ run : mix test
30+
31+ macos :
32+ runs-on : macos-latest
33+ name : macOS
34+ env :
35+ MIX_ENV : test
36+ steps :
37+ - uses : actions/checkout@v2
38+ - name : Install
39+ run : |
40+ brew update
41+ brew install erlang@27 elixir
42+ - name : Install dependencies
43+ run : mix deps.get
44+ - name : Compile and check warnings
45+ run : mix compile --warnings-as-errors
46+ - name : Check formatting
47+ run : mix format --check-formatted
48+ - name : Run tests
49+ run : mix test
You can’t perform that action at this time.
0 commit comments