Merge pull request #185 from iangreenleaf/elixir-caching
Add caching to Elixir workflow
This commit is contained in:
@@ -9,6 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
|
name: Build and test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -18,6 +19,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
elixir-version: '1.10.3' # Define the elixir version [required]
|
elixir-version: '1.10.3' # Define the elixir version [required]
|
||||||
otp-version: '22.3' # Define the OTP version [required]
|
otp-version: '22.3' # Define the OTP version [required]
|
||||||
|
- name: Restore dependencies cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: deps
|
||||||
|
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-mix-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: mix deps.get
|
run: mix deps.get
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
Reference in New Issue
Block a user