This commit adds a function to the rule engine that alows users to transform text or JSON objects using [jq filter programs][1]. [jq][1] is a command line tool that can be used to transform and filter JSON text using jq's built-in language. The rule engine function that is added with this commit uses the [Erlang jq NIF library][2] that wraps the jq C library in an Erlang NIF function. [1]: https://stedolan.github.io/jq/ [2]: https://github.com/emqx/jq
38 lines
1014 B
YAML
38 lines
1014 B
YAML
# FIXME: temporary workflow for testing; remove later
|
|
name: Elixir Build (temporary)
|
|
|
|
concurrency:
|
|
group: mix-${{ github.event_name }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
elixir_release_build:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/emqx/emqx-builder/5.0-14:1.13.3-24.2.1-1-ubuntu20.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: install tools
|
|
run: apt update && apt install netcat-openbsd
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- name: elixir release
|
|
run: make emqx-elixir
|
|
- name: start release
|
|
run: |
|
|
cd _build/emqx/rel/emqx
|
|
bin/emqx start
|
|
- name: check if started
|
|
run: |
|
|
sleep 10
|
|
nc -zv localhost 1883
|
|
cd _build/emqx/rel/emqx
|
|
bin/emqx ping
|
|
bin/emqx ctl status
|