From 8194fbaa4a134c65f6a8465638f4ca0dee58e79b Mon Sep 17 00:00:00 2001 From: Tommaso Cerruti Date: Sun, 7 Jul 2024 12:10:11 +0200 Subject: [PATCH] add: github workflow --- .github/workflows/elixir.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index f8a1369..14b83d2 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -30,37 +30,7 @@ jobs: restore-keys: ${{ runner.os }}-mix- - name: Install dependencies run: mix deps.get - # Cache key based on Erlang/Elixir version and the mix.lock hash - - name: Restore PLT cache - id: plt_cache - uses: actions/cache/restore@v3 - with: - key: | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} - restore-keys: | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}- - path: | - priv/plts - - # Create PLTs if no cache was found - - name: Create PLTs - if: steps.plt_cache.outputs.cache-hit != 'true' - run: mix dialyzer --plt - - # By default, the GitHub Cache action will only save the cache if all steps in the job succeed, - # so we separate the cache restore and save steps in case running dialyzer fails. - - name: Save PLT cache - id: plt_cache_save - uses: actions/cache/save@v3 - if: steps.plt_cache.outputs.cache-hit != 'true' - with: - key: | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} - path: | - priv/plts - name: Compile the project run: mix compile - - name: Run custom CI task - run: mix ci - name: Run tests run: mix test