Bump to 0.4.3 #95
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: Elixir CI | |
on: | |
push: | |
branches: [ master, development ] | |
pull_request: | |
branches: [ master, development ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup elixir | |
uses: actions/setup-elixir@v1 | |
with: | |
elixir-version: 1.14.x # Define the elixir version [required] | |
otp-version: 25.x # Define the OTP version [required] | |
experimental-otp: true | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Run Tests | |
run: mix test | |
- name: Check Format | |
run: mix format --check-formatted | |
- name: Check Credo | |
run: mix credo | |
- name: Restore PLT cache | |
uses: actions/cache@v2 | |
id: plt_cache | |
with: | |
key: | | |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt | |
restore-keys: | | |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt | |
path: | | |
priv/plts | |
# Create PLTs if no cache was found | |
- name: Create PLTs | |
if: steps.plt_cache.outputs.cache-hit != 'true' | |
run: mix dialyzer --plt | |
- name: Run dialyzer | |
run: mix dialyzer |