Skip to content

Merge pull request #162 from adoptoposs/dependabot/hex/ex_doc-0.35.1 #403

Merge pull request #162 from adoptoposs/dependabot/hex/ex_doc-0.35.1

Merge pull request #162 from adoptoposs/dependabot/hex/ex_doc-0.35.1 #403

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.3, 26.2, 27.0]
elixir: [1.13.4, 1.14.5, 1.15.8, 1.16.3, 1.17.2]
exclude:
- otp: 26.2
elixir: 1.13.4
- otp: 27.0
elixir: 1.13.4
- otp: 27.0
elixir: 1.14.5
- otp: 27.0
elixir: 1.15.8
- otp: 27.0
elixir: 1.16.3
- otp: 24.3
elixir: 1.17.2
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