check_deps_integrity.yaml 1.2 KB

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