Update publish.yaml #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E tests on Linux (mise) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| e2e_tests: | |
| strategy: | |
| matrix: | |
| # ref: https://github.com/actions/runner-images | |
| os: [ubuntu-24.04] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: prepare Erlang/OTP deps (Linux) | |
| 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 mise and Erlang/OTP via vfox-erlang plugin (Linux) | |
| run: | | |
| # Install mise | |
| curl https://mise.run | sh | |
| # Add mise to PATH for this session | |
| export PATH="$HOME/.local/bin:$PATH" | |
| # Configure mise and install Erlang (try standard approach first) | |
| export MAKEFLAGS=-j4 | |
| # Try the standard mise approach for vfox plugins | |
| $HOME/.local/bin/mise use -g vfox:version-fox/vfox-erlang@26.2.3 | |
| # Test the installation | |
| $HOME/.local/bin/mise exec -- erl -version | |
| echo "===============PATH===============" | |
| echo $PATH | |
| echo "===============PATH===============" | |
| cd assets | |
| $HOME/.local/bin/mise exec -- erlc hello.erl | |
| $HOME/.local/bin/mise exec -- erl -noshell -s hello hello_world -s init stop | |
| docs=$($HOME/.local/bin/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 |