Skip to content

Commit

Permalink
Cache dependencies during CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBG committed Sep 22, 2023
1 parent c26875c commit a005225
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,29 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: 25.0.2
elixir-version: 1.14.x
version-file: .tool-versions
version-type: strict

- uses: actions/cache@v3
with:
path: |
deps
_build
priv/plts
key: ${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles(format('{0}/mix.lock', github.workspace)) }}

- uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: 'npm'
node-version-file: .tool-versions
cache: npm
cache-dependency-path: |
- package-lock.json
- cli/package-lock.json
- jipt/package-lock.json
- webapp/package-lock.json
- name: Install System Dependencies
run: |
Expand Down

0 comments on commit a005225

Please sign in to comment.