Skip to content

Test with different ubuntu versions #88

Test with different ubuntu versions

Test with different ubuntu versions #88

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:
jobs:
# Supported versions is rather complex:
#
# ubuntu-18.04: OTP_VERSION=17.0 - 25.3
# ubuntu-20.04: OTP_VERSION=21.0 - 27
# ubuntu-22.04: OTP_VERSION=24.2 - 27
# ubuntu-24.04: OTP_VERSION=24.3 - 27
test:
runs-on: ${{matrix.erlang.os}}
name: OTP ${{matrix.erlang.otp}}
env:
emacs: 27.1
strategy:
matrix:
erlang:
# - otp: "17.5.3"
# rebar3: "3.10.0"
# os: ubuntu-18.04
# - otp: "18.3"
# rebar3: "3.11.1"
# os: ubuntu-18.04
# - otp: "19.3"
# rebar3: "3.15.2"
# os: ubuntu-18.04
# - otp: "20.3.8.26"
# rebar3: "3.15.2"
# os: ubuntu-18.04
- otp: "21.3"
rebar3: "3.15.2"
os: ubuntu-20.04
- otp: "22.3"
rebar3: "3.16.1"
os: ubuntu-20.04
- otp: "23.3"
rebar3: "3.16.1"
os: ubuntu-22.04
- otp: "24.3"
rebar3: "3.16.1"
os: ubuntu-22.04
- otp: "25.3"
rebar3: "3.22.1"
os: ubuntu-24.04
- otp: "26.2"
rebar3: "3.22.1"
os: ubuntu-24.04
- otp: "27.1"
rebar3: "3.22.1"
os: ubuntu-24.04
steps:
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{env.emacs}}
- name: Install Erlang
id: install_erlang
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.erlang.otp}}
rebar3-version: ${{matrix.erlang.rebar3}}
install-hex: false
- name: Add Erlang to Path
run: |
echo "ERL_PATH=/usr/lib/erlang" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Compile
run: make
- name: Test
run: make test