From 1a5f94bc68428bd1ba5b650f1c8161ec0c737da1 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 7 Nov 2019 12:34:15 -0600 Subject: [PATCH] Add caching to Elixir workflow --- ci/elixir.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ci/elixir.yml b/ci/elixir.yml index eed27bc..643e1b6 100644 --- a/ci/elixir.yml +++ b/ci/elixir.yml @@ -12,10 +12,24 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Cache Mix Dependencies + uses: actions/cache@v1 + with: + path: deps + key: ${{ runner.OS }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: | + ${{ runner.OS }}-mix- - name: Install Dependencies run: | mix local.rebar --force mix local.hex --force mix deps.get + - name: Cache Build Files + uses: actions/cache@v1 + with: + path: _build + key: ${{ runner.OS }}-build-${{ github.sha }} + restore-keys: | + ${{ runner.OS }}-build- - name: Run Tests run: mix test