From c0a909296ef4a0c80821d5adacfd538bb53bfcc6 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 26 Dec 2023 13:40:24 +0100 Subject: [PATCH] Runtime: Mix: Enable ModPresenceDemo and Elixir dep --- .github/workflows/runtime.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index cad231014..9f5306409 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -197,6 +197,13 @@ jobs: echo "::remove-matcher owner=elixir-mixTestFailure::" echo "::remove-matcher owner=elixir-dialyzerOutputDefault::" + - name: Enable ModPresenceDemo and an Elixir dependency + run: | + sed -i "s|^modules:|modules:\n 'ModPresenceDemo': {}|g" ejabberd.yml.example + cat ejabberd.yml.example + sed -i 's|^{deps, \(.*\)|{deps, \1\n {decimal, ".*", {git, "https://github.com/ericmj/decimal", {branch, "main"}}}, |g' rebar.config + cat rebar.config + - name: Compile run: | ./autogen.sh @@ -259,12 +266,15 @@ jobs: grep -q '^user3$' registered.log grep -q 'is started' _build/prod/rel/ejabberd/logs/ejabberd.log grep -q 'is stopped' _build/prod/rel/ejabberd/logs/ejabberd.log + grep -q 'module Presence Demo' _build/prod/rel/ejabberd/logs/ejabberd.log test $(find _build/prod/ -empty -name error.log) grep -q 'is started' _build/dev/rel/ejabberd/logs/ejabberd.log grep -q 'is stopped' _build/dev/rel/ejabberd/logs/ejabberd.log + grep -q 'module Presence Demo' _build/dev/rel/ejabberd/logs/ejabberd.log test $(find _build/dev/ -empty -name error.log) grep -q 'is started' /tmp/ejabberd/var/log/ejabberd/ejabberd.log grep -q 'is stopped' /tmp/ejabberd/var/log/ejabberd/ejabberd.log + grep -q 'module Presence Demo' /tmp/ejabberd/var/log/ejabberd/ejabberd.log test $(find /tmp/ejabberd/var/log/ejabberd/ -empty -name error.log) - name: View logs failures