Skip to content

Allow for specifying checks in mix config #114

Allow for specifying checks in mix config

Allow for specifying checks in mix config #114

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
otp_version: ['24', '25']
elixir_version: ['1.13', '1.14']
include:
- otp_version: '26'
elixir_version: '1.14'
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-otp-${{ matrix.otp_version }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ matrix.otp_version }}-mix-
- name: Install dependencies
run: mix do deps.get, deps.compile
- name: Run tests
run: mix test --cover
- uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
flags: elixir-${{ matrix.elixir_version }},otp-${{ matrix.otp_version }}