Merge pull request #3 from rgraff/main #10
This file contains hidden or 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 Tests / Static Analysis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 | |
with: | |
elixir-version: '1.13.1' | |
otp-version: '24.0.4' | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Static Code Analysis - Dialyzer | |
run: mix dialyzer | |
- name: Static Code Analysis - Credo | |
run: mix credo | |
- name: mix test | |
run: mix test | |