Skip to content

Add E2E tests for mise users with vfox-erlang plugin #1

Add E2E tests for mise users with vfox-erlang plugin

Add E2E tests for mise users with vfox-erlang plugin #1

name: E2E tests on Linux (mise)
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
schedule:
# Runs at 12am UTC
- cron: '0 0 * * *'
jobs:
e2e_tests:
strategy:
matrix:
# ref: https://github.com/actions/runner-images
os: [ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install mise
run: |
curl https://mise.run | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: prepare Erlang/OTP deps (Linux)
if: matrix.os != 'ubuntu-24.04'
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
- name: prepare Erlang/OTP deps (Linux)
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.2-dev libwxgtk-webview3.2-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
- name: install Erlang/OTP by mise with vfox-erlang plugin (Linux)
run: |
export MAKEFLAGS=-j4
mise use -g vfox:version-fox/vfox-erlang@26.2.3
mise exec -- erl -version
echo "===============PATH==============="
echo $PATH
echo "===============PATH==============="
cd assets
mise exec -- erlc hello.erl
mise exec -- erl -noshell -s hello hello_world -s init stop
docs=$(mise exec -- erl -eval 'erlang:display(shell_docs:get_doc(lists)), halt().' -noshell | grep "List processing functions")
if [ -n "$docs" ]; then
echo "erlang built with docs chunk"
else
echo "erlang does not built with docs chunk"
exit 1
fi