Skip to content

Merge pull request #6 from Gladear/add-composition-predicates #9

Merge pull request #6 from Gladear/add-composition-predicates

Merge pull request #6 from Gladear/add-composition-predicates #9

Workflow file for this run

name: Unplug CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHELL: sh
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
static_analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.13.3'
otp-version: '24.2'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v2-
- name: Install dependencies
run: mix deps.get
- name: Restore PLT cache
uses: actions/cache@v2
with:
path: priv/plts
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v2-
- name: Mix Formatter
run: mix format --check-formatted
- name: Check for compiler warnings
run: mix compile --warnings-as-errors
- name: Credo strict checks
run: mix credo --strict
- name: Doctor documentation checks
run: mix doctor
unit_test:
name: Run ExUnit tests
runs-on: ubuntu-latest
strategy:
matrix:
elixir:
- '1.13.3'
otp:
- '24.2'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v2-
- name: Install dependencies
run: mix deps.get
- name: ExUnit tests
env:
MIX_ENV: test
run: mix coveralls.github