run_conf_tests.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. jobs:
  12. run_conf_tests:
  13. runs-on: ${{ endsWith(github.repository, '/emqx') && 'ubuntu-22.04' || fromJSON('["self-hosted","ephemeral","linux","x64"]') }}
  14. container: ${{ inputs.builder }}
  15. env:
  16. PROFILE: ${{ matrix.profile }}
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. profile:
  21. - emqx
  22. - emqx-enterprise
  23. steps:
  24. - uses: actions/download-artifact@v3
  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: ./scripts/test/check-example-configs.sh
  32. - run: ./scripts/conf-test/run.sh
  33. - name: print erlang log
  34. if: failure()
  35. run: |
  36. cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
  37. - uses: actions/upload-artifact@v3
  38. if: failure()
  39. with:
  40. name: logs-${{ matrix.profile }}
  41. path: _build/${{ matrix.profile }}/rel/emqx/logs
  42. retention-days: 7