emqx/.github/workflows/elixir_deps_check.yaml
William Yang 528817d620 ci: enable ci tests on pushes.
- Secure tests on master branch after merge.

- Improve build cache hit rates
  Due to security reason, github only allow reuse cache from
  - same branch
  - base branch
  - default branch

  Branch Feature-A could not reuse the cache from Feature-B

- Developers could run the workflow in their own forked repo
  before make the PR, this could relieve the runners on upstream repo
2022-01-28 18:33:53 +01:00

26 lines
576 B
YAML

---
name: Elixir Dependency Version Check
on: [pull_request, push]
jobs:
elixir_deps_check:
runs-on: ubuntu-20.04
container: ghcr.io/emqx/emqx-builder/5.0-5:1.13.2-24.1.5-4-ubuntu20.04
steps:
- name: Checkout
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
...