From e19c82e944e2323e8f231eac77710c50301e07b7 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Mon, 20 Feb 2023 10:18:16 +0200 Subject: [PATCH] Disable caching in CI for Windows Installing Electron in Windows seems to be broken in this regards. Signed-off-by: Janne Savolainen --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a757548fa1cf..47567ac44b838 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,11 +33,13 @@ jobs: node-version: ${{ matrix.node-version }} - name: Get npm cache directory path + if: ${{ runner.os != 'Windows' }} id: npm-cache-dir-path shell: bash run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 + if: ${{ runner.os != 'Windows' }} id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.npm-cache-dir-path.outputs.dir }}