added npm cache
Unit Tests with docker compose / unit-test (pull_request) Failing after 2s
Details
Unit Tests with docker compose / unit-test (pull_request) Failing after 2s
Details
This commit is contained in:
parent
e14ac6b282
commit
140dec982f
|
@ -7,6 +7,7 @@ jobs:
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/docker:/var/lib/docker
|
- /var/lib/docker:/var/lib/docker
|
||||||
|
- /
|
||||||
steps:
|
steps:
|
||||||
- name: Starting docker daemon
|
- name: Starting docker daemon
|
||||||
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
||||||
|
@ -14,6 +15,13 @@ jobs:
|
||||||
run: apk add npm git curl bash
|
run: apk add npm git curl bash
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Install project dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Run docker-compose
|
- name: Run docker-compose
|
||||||
|
|
Loading…
Reference in New Issue