Version 1.11.7 (2024-04-07) #133
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 | |
on: [push, pull_request] | |
env: | |
MIX_ENV: test | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- elixir: 1.15.4 | |
otp: 26.0.2 | |
lint: true | |
- elixir: 1.14.5 | |
otp: 25.2 | |
- elixir: 1.13.4 | |
otp: 24.3.4.5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Beam | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Erlang Tests | |
run: | | |
make distclean | |
make erlang-mk | |
make ct | |
- name: Retrieve Mix Dependencies Cache | |
uses: actions/cache@v1 | |
id: mix-cache | |
with: | |
path: deps | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
- name: Install Mix Dependencies | |
if: steps.mix-cache.outputs.cache-hit != 'true' | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Check Formatting | |
if: ${{ matrix.lint }} | |
run: mix format --check-formatted | |
- name: Elixir Tests | |
run: mix test | |
- name: Logs | |
uses: actions/upload-artifact@v2-preview | |
if: failure() | |
with: | |
name: ct-logs-${{matrix.erlang}} | |
path: logs/* | |
dialyzer: | |
name: Dialyzer | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Beam | |
id: setupBeam | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: 1.15.4 | |
otp-version: 26.0.2 | |
- name: Retrieve Mix Dependencies Cache | |
uses: actions/cache@v1 | |
id: mix-cache | |
with: | |
path: deps | |
key: ${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.otp-version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
- name: Install Mix Dependencies | |
if: steps.mix-cache.outputs.cache-hit != 'true' | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Dialyzer | |
run: mix dialyzer --format github |