diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 355cdfb05..f610bf51f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,10 +22,14 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: docker-compose -f ./examples/docker-compose.yml up -d + - name: Get npm cache directory + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" - name: Restore Dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: - path: ~/.npm + path: ${{ steps.npm-cache.outputs.dir }} key: ${{ runner.os }}-node-${{matrix.node-version}}-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node-${{matrix.node-version}}-