Quellcode durchsuchen

chore(ci): check emqx app standalone

Zaiming Shi vor 4 Jahren
Ursprung
Commit
045a944192
2 geänderte Dateien mit 27 neuen und 0 gelöschten Zeilen
  1. 26 0
      .github/workflows/run_emqx_app_tests.yaml
  2. 1 0
      apps/emqx/rebar.config

+ 26 - 0
.github/workflows/run_emqx_app_tests.yaml

@@ -0,0 +1,26 @@
+name: Check emqx app standalone
+
+on:
+  push:
+    tags:
+      - v*
+      - e*
+  pull_request:
+
+jobs:
+    check_all:
+        runs-on: ubuntu-20.04
+        container: emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04
+
+        steps:
+        - uses: actions/checkout@v2
+        - name: run
+          run: |
+            make ensure-rebar3
+            cp rebar3 apps/emqx/
+            cd apps/emqx
+            ./rebar3 xref
+            ./rebar3 dialyzer
+            ./rebar3 eunit -v
+            ./rebar3 ct -v
+            ./rebar3 proper -d test/props

+ 1 - 0
apps/emqx/rebar.config

@@ -23,6 +23,7 @@
     , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
     ]}.
 
+{plugins, [rebar3_proper]}.
 {extra_src_dirs, [{"etc", [recursive]}]}.
 
 {profiles, [