run_conf_tests.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. permissions:
  15. contents: read
  16. jobs:
  17. run_conf_tests:
  18. runs-on: ${{ fromJSON(inputs.runner_labels) }}
  19. container: ${{ inputs.builder }}
  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: cat .env | tee -a $GITHUB_ENV
  35. - run: make ${{ matrix.profile }}
  36. - run: ./scripts/test/check-example-configs.sh
  37. - run: ./scripts/conf-test/run.sh
  38. - name: print erlang log
  39. if: failure()
  40. run: |
  41. cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  42. - uses: actions/upload-artifact@v3
  43. if: failure()
  44. with:
  45. name: logs-${{ matrix.profile }}
  46. path: _build/${{ matrix.profile }}/rel/emqx/logs