Merge pull request #7 from weareyipyip/add-no-assoc-error #36
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 / Automated testing | |
on: | |
push: | |
branches: ["**"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }} | |
env: | |
MIX_ENV: test | |
strategy: | |
matrix: | |
elixir: [1.12.x, 1.13.x, 1.14.x] | |
otp: [24.x, 25.x] | |
exclude: | |
- elixir: 1.12.x | |
otp: 25.x | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Cache deps | |
uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
key: deps-cache-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
deps-cache-${{ matrix.elixir }}-${{ matrix.otp }}- | |
- name: Install dependencies | |
run: mix do local.hex --force, local.rebar --force, deps.get | |
- name: Check code formatting | |
run: mix format --check-formatted | |
- name: Compile dependencies | |
run: mix deps.compile | |
- name: Compile code (warnings as errors) | |
run: mix compile --warnings-as-errors | |
- name: Run tests | |
run: mix test | |
- name: Create docs | |
run: mix docs |