elixir_apps_check.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. name: Check Elixir Release Applications
  3. on: [pull_request, push]
  4. jobs:
  5. elixir_apps_check:
  6. runs-on: ubuntu-latest
  7. # just use the latest builder
  8. container: "ghcr.io/emqx/emqx-builder/5.0-14:1.13.3-24.2.1-1-ubuntu20.04"
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. release_type:
  13. - cloud
  14. - edge
  15. package_type:
  16. - bin
  17. - pkg
  18. edition_type:
  19. - community
  20. - enterprise
  21. exclude:
  22. - release_type: edge
  23. package_type: bin
  24. edition_type: enterprise
  25. - release_type: edge
  26. package_type: pkg
  27. edition_type: enterprise
  28. steps:
  29. - name: fix_git_permission
  30. run: git config --global --add safe.directory '/__w/emqx/emqx'
  31. - name: Checkout
  32. uses: actions/checkout@v2
  33. with:
  34. fetch-depth: 0
  35. - name: ensure rebar
  36. run: ./scripts/ensure-rebar3.sh
  37. - name: Work around https://github.com/actions/checkout/issues/766
  38. run: |
  39. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  40. - name: check applications
  41. run: ./scripts/check-elixir-applications.exs
  42. - name: check applications started with emqx_machine
  43. run: ./scripts/check-elixir-emqx-machine-boot-discrepancies.exs
  44. env:
  45. EMQX_RELEASE_TYPE: ${{ matrix.release_type }}
  46. EMQX_PACKAGE_TYPE: ${{ matrix.package_type }}
  47. EMQX_EDITION_TYPE: ${{ matrix.edition_type }}
  48. ...