run_conf_tests.yaml 1.4 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. 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. strategy:
  18. fail-fast: false
  19. matrix:
  20. profile:
  21. - emqx
  22. - emqx-enterprise
  23. steps:
  24. - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
  25. with:
  26. name: ${{ matrix.profile }}
  27. - name: extract artifact
  28. run: |
  29. unzip -o -q ${{ matrix.profile }}.zip
  30. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  31. - run: cat .env | tee -a $GITHUB_ENV
  32. - run: make ${{ matrix.profile }}
  33. - run: ./scripts/test/check-example-configs.sh
  34. - run: ./scripts/conf-test/run.sh
  35. - name: print erlang log
  36. if: failure()
  37. run: |
  38. cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  39. - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
  40. if: failure()
  41. with:
  42. name: conftest-logs-${{ matrix.profile }}
  43. path: _build/${{ matrix.profile }}/rel/emqx/logs
  44. retention-days: 7