run_conf_tests.yaml 1.3 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. strategy:
  19. fail-fast: false
  20. matrix:
  21. profile:
  22. - emqx
  23. - emqx-enterprise
  24. steps:
  25. - uses: actions/download-artifact@v3
  26. with:
  27. name: ${{ matrix.profile }}
  28. - name: extract artifact
  29. run: |
  30. unzip -o -q ${{ matrix.profile }}.zip
  31. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  32. - run: cat .env | tee -a $GITHUB_ENV
  33. - run: make ${{ matrix.profile }}
  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