Merge pull request #6634 from emqx/fix-mix-deps-check

fix(ci): setup mix before running check
This commit is contained in:
Thales Macedo Garitezi 2022-01-04 14:09:36 -03:00 committed by GitHub
commit 5cf067c85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,11 @@ jobs:
uses: actions/checkout@v2.4.0
- name: ensure rebar
run: ./scripts/ensure-rebar3.sh 3.16.1-emqx-1
- name: setup mix
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: check elixir deps
run: ./scripts/check-elixir-deps-discrepancies.exs

View File

@ -1,8 +1,5 @@
#!/usr/bin/env elixir
# ensure we have a mix.lock
{_, 0} = System.cmd("mix", ["deps.get"], into: IO.stream())
# ensure we have a fresh rebar.lock
case File.stat("rebar.lock") do