Skip to content

Release 0.8.2

Release 0.8.2 #49

Workflow file for this run

---
name: Test
on:
push:
branches:
- "main"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
otp: ['24.3', '25.3', '26.2.1']
elixir: ['1.13.4', '1.14.5', '1.15.7', '1.16.1']
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html
exclude:
- otp: '24.3'
elixir: '1.15.7'
- otp: '24.3'
elixir: '1.16.1'
- otp: '26.2.1'
elixir: '1.13.4'
- otp: '26.2.1'
elixir: '1.14.5'
env:
MIX_ENV: test
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Install Erlang and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
rebar3-version: '3.18.0'
- name: Retrieve cached deps
uses: actions/cache@v4
with:
path: |
_build
key: ${{ matrix.otp }}-${{ matrix.elixir}}-${{ hashFiles('**/rebar.lock') }}
restore-keys: |
${{ matrix.otp }}-${{ matrix.elixir }}-
- name: Check formatting
run: rebar3 steamroll --check
- name: Run Erlang tests
run: rebar3 ct
- name: Install Elixir tools
working-directory: mix_tests
run: mix do local.rebar --force, local.hex --force
- name: Get Elixir deps
working-directory: mix_tests
run: mix deps.get
- name: Run Elixir tests
working-directory: mix_tests
run: mix test
- name: Run static code analysis checks
run: rebar3 dialyzer