run_conf_tests.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Run Configuration tests
  2. concurrency:
  3. group: conftest-${{ github.event_name }}-${{ github.ref }}
  4. cancel-in-progress: true
  5. on:
  6. push:
  7. branches:
  8. - master
  9. - 'ci/**'
  10. tags:
  11. - v*
  12. - e*
  13. pull_request:
  14. env:
  15. IS_CI: "yes"
  16. jobs:
  17. run_conf_tests:
  18. runs-on: ubuntu-22.04
  19. strategy:
  20. fail-fast: false
  21. matrix:
  22. profile:
  23. - emqx
  24. - emqx-enterprise
  25. container: "ghcr.io/emqx/emqx-builder/5.1-0:1.14.5-25.3.2-1-ubuntu22.04"
  26. steps:
  27. - uses: AutoModality/action-clean@v1
  28. - uses: actions/checkout@v3
  29. with:
  30. path: source
  31. - name: build_package
  32. working-directory: source
  33. run: |
  34. make ${{ matrix.profile }}
  35. - name: run_tests
  36. working-directory: source
  37. env:
  38. PROFILE: ${{ matrix.profile }}
  39. run: |
  40. ./scripts/conf-test/run.sh
  41. - name: print_erlang_log
  42. if: failure()
  43. run: |
  44. cat source/_build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  45. - uses: actions/upload-artifact@v3
  46. if: failure()
  47. with:
  48. name: logs-${{ matrix.profile }}
  49. path: source/_build/${{ matrix.profile }}/rel/emqx/logs