Skip to content

config: add cache to CI #3

config: add cache to CI

config: add cache to CI #3

Workflow file for this run

name: deps
on:
push:
pull_request:
env:
MIX_ENV: test
jobs:
deps:
name: Dependencies
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.15.7]
otp: [26.1.2]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- id: mix-deps
uses: actions/cache/save@v3
with:
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: mix-deps
path: |
deps
_build