changed the action to use cache #19

Merged
bizcochito merged 30 commits from testing into develop 2024-01-06 18:57:41 +00:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 140dec982f - Show all commits

View File

@ -7,6 +7,7 @@ jobs:
image: docker:dind
volumes:
- /var/lib/docker:/var/lib/docker
- /
steps:
- name: Starting docker daemon
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
@ -14,6 +15,13 @@ jobs:
run: apk add npm git curl bash
- name: Check out repository code
uses: actions/checkout@v3
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install project dependencies
run: npm install
- name: Run docker-compose