From c462152f8352a20b85dc7da8557587f1bfbf9c13 Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Tue, 13 Jun 2023 15:23:38 +0200 Subject: [PATCH] install rebar in action --- .github/workflows/ci.yaml | 7 +++---- .github/workflows/elixir_matrix.yaml | 4 ++-- .github/workflows/k8s_matrix.yaml | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9026e7c..eb50a49 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,6 +32,8 @@ jobs: with: elixir-version: ${{matrix.elixir}} otp-version: ${{matrix.otp}} + install-rebar: true + install-hex: true - name: Retrieve Build Cache uses: actions/cache@v3 @@ -59,10 +61,7 @@ jobs: priv/plts - name: Install Mix Dependencies - run: | - mix local.rebar --force - mix local.hex --force - mix deps.get + run: mix deps.get - name: Check Formatting run: mix format --check-formatted diff --git a/.github/workflows/elixir_matrix.yaml b/.github/workflows/elixir_matrix.yaml index ade3ca0..1db1675 100644 --- a/.github/workflows/elixir_matrix.yaml +++ b/.github/workflows/elixir_matrix.yaml @@ -20,6 +20,8 @@ jobs: with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} + install-rebar: true + install-hex: true - name: Retrieve Build Cache uses: actions/cache@v3 @@ -35,8 +37,6 @@ jobs: path: deps key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - - run: mix local.rebar --force - - run: mix local.hex --force - run: mix deps.get - run: mix compile --warnings-as-errors - run: mix test diff --git a/.github/workflows/k8s_matrix.yaml b/.github/workflows/k8s_matrix.yaml index 1c6d0fe..a3508ff 100644 --- a/.github/workflows/k8s_matrix.yaml +++ b/.github/workflows/k8s_matrix.yaml @@ -27,6 +27,8 @@ jobs: with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} + install-rebar: true + install-hex: true - name: Retrieve Build Cache uses: actions/cache@v3 @@ -42,8 +44,6 @@ jobs: path: deps key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - - run: mix local.rebar --force - - run: mix local.hex --force - run: mix deps.get - name: Run Integration Tests run: |