run_conf_tests.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_labels:
  9. required: true
  10. type: string
  11. builder:
  12. required: true
  13. type: string
  14. jobs:
  15. run_conf_tests:
  16. runs-on: ${{ fromJSON(inputs.runner_labels) }}
  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: actions/download-artifact@v3
  28. with:
  29. name: ${{ matrix.profile }}
  30. - name: extract artifact
  31. run: |
  32. unzip -o -q ${{ matrix.profile }}.zip
  33. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  34. - run: ./scripts/test/check-example-configs.sh
  35. - run: ./scripts/conf-test/run.sh
  36. - name: print erlang log
  37. if: failure()
  38. run: |
  39. cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  40. - uses: actions/upload-artifact@v3
  41. if: failure()
  42. with:
  43. name: logs-${{ matrix.profile }}
  44. path: _build/${{ matrix.profile }}/rel/emqx/logs