run_conf_tests.yaml 1.4 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. builder:
  9. required: true
  10. type: string
  11. permissions:
  12. contents: read
  13. jobs:
  14. run_conf_tests:
  15. runs-on: ${{ endsWith(github.repository, '/emqx') && 'ubuntu-22.04' || fromJSON('["self-hosted","ephemeral","linux","x64"]') }}
  16. container: ${{ inputs.builder }}
  17. env:
  18. PROFILE: ${{ matrix.profile }}
  19. strategy:
  20. fail-fast: false
  21. matrix:
  22. profile:
  23. - emqx
  24. - emqx-enterprise
  25. steps:
  26. - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
  27. with:
  28. name: ${{ matrix.profile }}
  29. - name: extract artifact
  30. run: |
  31. unzip -o -q ${{ matrix.profile }}.zip
  32. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  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/log/erlang.log.*
  40. - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
  41. if: failure()
  42. with:
  43. name: conftest-logs-${{ matrix.profile }}
  44. path: _build/${{ matrix.profile }}/rel/emqx/log
  45. retention-days: 7