refactor: update test matrix to use multi versions of elixir and otp #12
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: | |
test: | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
otp: ['26.x', '27.x'] | |
elixir: ['1.16.3', '1.17.3', '1.18.3'] | |
exclude: | |
- otp: '27.x' | |
elixir: '1.16.3' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- 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 | |