run_conf_tests.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Run Configuration tests
  2. concurrency:
  3. group: conftest-${{ github.event_name }}-${{ github.ref }}
  4. cancel-in-progress: true
  5. on:
  6. workflow_call:
  7. inputs:
  8. runner:
  9. required: true
  10. type: string
  11. builder:
  12. required: true
  13. type: string
  14. jobs:
  15. run_conf_tests:
  16. runs-on: ${{ inputs.runner }}
  17. container: ${{ inputs.builder }}
  18. env:
  19. PROFILE: ${{ matrix.profile }}
  20. strategy:
  21. fail-fast: false
  22. matrix:
  23. profile:
  24. - emqx
  25. - emqx-enterprise
  26. steps:
  27. - uses: AutoModality/action-clean@v1
  28. - uses: actions/download-artifact@v3
  29. with:
  30. name: ${{ matrix.profile }}
  31. - name: extract artifact
  32. run: |
  33. unzip -o -q ${{ matrix.profile }}.zip
  34. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  35. - run: ./scripts/test/check-example-configs.sh
  36. - run: ./scripts/conf-test/run.sh
  37. - name: print erlang log
  38. if: failure()
  39. run: |
  40. cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  41. - uses: actions/upload-artifact@v3
  42. if: failure()
  43. with:
  44. name: logs-${{ matrix.profile }}
  45. path: _build/${{ matrix.profile }}/rel/emqx/logs