From 9995e35e759c66813fdcbb5aaaea5a2a49e04f56 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 1 Jul 2020 17:06:09 -0400 Subject: [PATCH] Cache only Elixir dependencies, not build --- ci/elixir.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/ci/elixir.yml b/ci/elixir.yml index 1cad8fe..4b3e78f 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -9,6 +9,7 @@ on: jobs: build: + name: Build and test runs-on: ubuntu-latest steps: @@ -18,20 +19,12 @@ jobs: with: elixir-version: '1.10.3' # Define the elixir version [required] otp-version: '22.3' # Define the OTP version [required] - - name: Cache mix dependencies - uses: actions/cache@v1 + - name: Restore dependencies cache + uses: actions/cache@v2 with: path: deps - key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: | - ${{ runner.OS }}-mix- - - name: Cache build files - uses: actions/cache@v1 - with: - path: _build - key: ${{ runner.OS }}-build-${{ github.sha }} - restore-keys: | - ${{ runner.OS }}-build- + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- - name: Install dependencies run: mix deps.get - name: Run tests