Skip to content

Commit

Permalink
Fixes cache for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Dec 28, 2020
1 parent 1af32b0 commit acf22d8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,24 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup elixir
uses: actions/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}

- name: Get deps cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: deps/
key: ${{ runner.os }}-deps-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-deps-
key: deps-${{ matrix.otp-version }}-${{ matrix.elixir-version }}-${{ hashFiles('**/mix.lock') }}

- name: Get build cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: _build/test/
key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-build-
key: build-${{ matrix.otp-version }}-${{ matrix.elixir-version }}-${{ hashFiles('**/mix.lock') }}

- name: Install Dependencies
run: |
Expand Down

0 comments on commit acf22d8

Please sign in to comment.