run_emqx_app_tests.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Check emqx app standalone
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. - e*
  7. pull_request:
  8. jobs:
  9. check_all:
  10. strategy:
  11. matrix:
  12. otp:
  13. - 23.3.4.9-3
  14. - 24.1.5-3
  15. os:
  16. - ubuntu20.04
  17. arch:
  18. - amd64
  19. runs-on: ubuntu-20.04
  20. container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Get deps git refs for cache
  24. id: deps-refs
  25. run: |
  26. PATH=$PATH:./ scripts/get-dep-refs.sh
  27. make clean-all
  28. - name: load rocksdb cache
  29. uses: actions/cache@v2
  30. with:
  31. path: _build/default/lib/rocksdb/
  32. key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_ROCKSDB_REF }}
  33. - name: load quicer cache
  34. uses: actions/cache@v2
  35. with:
  36. path: _build/default/lib/quicer/
  37. key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }}
  38. - name: run
  39. run: |
  40. make ensure-rebar3
  41. cp rebar3 apps/emqx/
  42. cd apps/emqx
  43. ./rebar3 xref
  44. ./rebar3 dialyzer
  45. ./rebar3 eunit -v
  46. ./rebar3 ct -v
  47. ./rebar3 proper -d test/props
  48. - uses: actions/upload-artifact@v1
  49. if: failure()
  50. with:
  51. name: logs
  52. path: apps/emqx/_build/test/logs