Bump credo from 1.7.1 to 1.7.7 #397
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: build | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.erlang }}-ubuntu-${{ matrix.ubuntu }} | |
name: Elixir ${{ matrix.elixir }} / Erlang ${{ matrix.erlang }} and Ubuntu ${{matrix.ubuntu}} | |
strategy: | |
fail-fast: false | |
matrix: | |
elixir: ["1.12.0", "1.11.0", "1.10.4", "1.9.4", "1.8.2", "1.7.4"] | |
erlang: ["22.3.4"] | |
ubuntu: ["bionic-20200219"] | |
steps: | |
- uses: actions/[email protected] | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: deps/ | |
key: dependencies-${{ matrix.elixir }}-erlang-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }} | |
- name: Cache dialyzer plt | |
uses: actions/cache@v1 | |
with: | |
path: _build/ | |
key: build-elixir-${{ matrix.elixir }}-erlang-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }} | |
- name: Install dependencies | |
run: |- | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Check format | |
if: (!startsWith(matrix.elixir, '1.7')) | |
run: mix format --check-formatted | |
- name: Run static code analysis | |
run: mix credo --strict | |
- name: Run dialyzer | |
run: mix dialyzer | |
- name: Run tests | |
run: mix test --cover |