Cache dependencies during CI builds (#375)

This commit is contained in:
Joey Bolduc-Gilbert 2023-09-22 13:11:45 -04:00 committed by GitHub
parent c26875c8bd
commit 3a8b948bde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: |