Skip to content

Bump mrml from 3.1.5 to 4.0.0 in /native/mjml_nif #376

Bump mrml from 3.1.5 to 4.0.0 in /native/mjml_nif

Bump mrml from 3.1.5 to 4.0.0 in /native/mjml_nif #376

Workflow file for this run

---
name: Tests
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
jobs:
tests:
env:
MIX_ENV: test
MJML_BUILD: true
runs-on: ubuntu-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] Tests on mjml_nif [OTP/Elixir]"
strategy:
fail-fast: false
# For compatibility between Elixir & Erlang/OTP see
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
matrix:
otp: [24.3, 25.1, 26.1]
elixir: [1.13.4, 1.14.5, 1.15.7, 1.16.1]
exclude:
- otp: 26.1
elixir: 1.13.4
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Cache hex deps
id: mix-cache
uses: actions/cache@v4
with:
path: |
deps
_build
!_build/*/lib/mjml
key: ${{ runner.os }}[${{ matrix.otp }}/${{ matrix.elixir }}]-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- run: mix deps.get
- run: mix deps.compile
- run: mix compile --warnings-as-errors
env:
RUST_BACKTRACE: 1
- run: mix test