File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # create this in .github/workflows/ci.yml
2- on : push
1+ name : Elixir CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
38
49jobs :
5- test :
6- name : OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
10+ build :
11+ name : Build and test
712 runs-on : ubuntu-latest
8- env :
9- MIX_ENV : test
10- strategy :
11- matrix :
12- elixir : [ 1.11.0, 1.12.0 , 1.13.0]
13- otp : [ 23.0.0, 24.0.0 ]
14- exclude :
15- - elixir : 1.11.0
16- otp : 24.0.0
17-
1813 steps :
19- - uses : actions/checkout@v2
20- - uses : erlef/setup-beam@v1
21- with :
22- otp-version : ' 24.1'
23- elixir-version : ' 1.12.2'
24- - run : mix deps.get
25- - run : mix format --check-formatted
26- - run : mix test
27- - run : mix credo --strict
14+ - uses : actions/checkout@v2
15+ - name : Set up Elixir
16+ uses : erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
17+ with :
18+ elixir-version : ' 1.12.3' # Define the elixir version [required]
19+ otp-version : ' 24.0.2' # Define the OTP version [required]
20+ - name : Restore dependencies cache
21+ uses : actions/cache@v2
22+ with :
23+ path : deps
24+ key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
25+ restore-keys : ${{ runner.os }}-mix-
26+ - name : Install dependencies
27+ run : mix deps.get
28+ - name : Run Tests
29+ run : mix coveralls.json
30+ env :
31+ MIX_ENV : test
32+ - name : Upload coverage to Codecov
33+ uses : codecov/codecov-action@v1
You can’t perform that action at this time.
0 commit comments