diff --git a/.github/workflows/build-unit-tests.yml b/.github/workflows/build-unit-tests.yml index 1efdf42..d4c724d 100644 --- a/.github/workflows/build-unit-tests.yml +++ b/.github/workflows/build-unit-tests.yml @@ -20,7 +20,17 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: npm + cache: none + + # 2. Restore npm cache manually + - name: Restore npm cache + uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Check npm audit run: npm audit --production --audit-level=low diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index 52dee41..64377d2 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -20,7 +20,17 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: npm + cache: none + + # 2. Restore npm cache manually + - name: Restore npm cache + uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install Dependencies run: npm ci