check_deps_integrity.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Check integrity of rebar and mix dependencies
  2. on:
  3. workflow_call:
  4. inputs:
  5. runner_labels:
  6. required: true
  7. type: string
  8. builder:
  9. required: true
  10. type: string
  11. permissions:
  12. contents: read
  13. jobs:
  14. check_deps_integrity:
  15. runs-on: ${{ fromJSON(inputs.runner_labels) }}
  16. container: ${{ inputs.builder }}
  17. steps:
  18. - uses: actions/checkout@v3
  19. - run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
  20. - run: make ensure-rebar3
  21. - run: ./scripts/check-deps-integrity.escript
  22. - name: Setup mix
  23. env:
  24. MIX_ENV: emqx-enterprise
  25. PROFILE: emqx-enterprise
  26. run: |
  27. mix local.hex --force
  28. mix local.rebar --force
  29. mix deps.get
  30. - run: ./scripts/check-elixir-deps-discrepancies.exs
  31. env:
  32. MIX_ENV: emqx-enterprise
  33. PROFILE: emqx-enterprise
  34. - run: ./scripts/check-elixir-applications.exs
  35. env:
  36. MIX_ENV: emqx-enterprise
  37. PROFILE: emqx-enterprise
  38. - name: Upload produced lock files
  39. uses: actions/upload-artifact@v3
  40. if: failure()
  41. with:
  42. name: produced_lock_files
  43. path: |
  44. mix.lock
  45. rebar.lock
  46. retention-days: 1