Skip to content

feat: fix dialyzer #152

feat: fix dialyzer

feat: fix dialyzer #152

Workflow file for this run

name: Erlang CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Erlang
uses: erlef/setup-beam@v1
with:
version-file: emqx-plugin-templates/.tool-versions
version-type: strict
- name: Check template code formatting
run: make fmt-template-check
- name: Check formatting of the project code (tests, rebar.config, etc)
run: make fmt-check
- name: Install rebar3 template
run: make install-rebar-template
- name: Build test plugin
run: ./scripts/build-sample-plugin.sh --tag 1.0.0 --name my_emqx_plugin_avsc --with-avsc --output-dir /tmp
- name: Run dialyzer
run: make -C my_emqx_plugin_avsc dialyzer
test:
runs-on: ubuntu-latest/
steps:
- uses: actions/checkout@v4
## We purposely do not use docker image for building,
## thus verifying that .tool-versions is suitable for developing a plugin.
- name: Setup Erlang
uses: erlef/setup-beam@v1
with:
version-file: emqx-plugin-templates/.tool-versions
version-type: strict
run: make install-rebar-template
- name: Build test plugins
run: make build-test-plugins
- name: Start EMQX
run: make up
- name: Run tests
run: make ct
- name: Stop EMQX
if: always()
run: make down