fix bug with colors and add numerous options #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request, push] | |
jobs: | |
mix_test: | |
name: mix test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }}) | |
strategy: | |
matrix: | |
elixir: | |
- "1.13" | |
- "1.14" | |
otp: | |
- "24" | |
- "25" | |
include: | |
- elixir: "1.14" | |
otp: "25" | |
format: true | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Run Tests | |
run: mix test | |
- name: Format | |
run: mix format --check-formatted | |
if: ${{ matrix.format }} | |
- name: Dialyzer | |
run: mix dialyzer | |
if: ${{ matrix.format }} |