Merge pull request #25 from corka149/24-support-map-atom-keys-in-json… #134
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 | |
pull_request: | |
branches: | |
- master | |
jobs: | |
# unit tests | |
test: | |
runs-on: ubuntu-latest | |
name: Test - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
otp: ["24.3", "25.2"] | |
elixir: ["1.13.4", "1.14.3"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Run Tests | |
run: mix test | |
# mutation tests | |
test-mutation: | |
name: Test mutation | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: mutation | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "25.2" | |
elixir-version: "1.14.3" | |
- run: mix deps.get | |
# Linit and type checking | |
analyze: | |
runs-on: ubuntu-latest | |
name: Analyze - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
otp: ["24.3", "25.2"] | |
elixir: ["1.13.4", "1.14.3"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- run: mix deps.get | |
- run: mix dialyzer | |
- run: mix credo --strict | |
# Coverage | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "25.2" | |
elixir-version: "1.14.3" | |
- run: mix deps.get | |
- run: mix coveralls.github |