Browse Source

Fix failing GitHub action on Windows (#4107)

* Use cache builtin to actions/setup-node@4

* Update test.yml

npm ci --verbose

* Update test.yml

* Install local packages on windows

* formatting
Sarah Fortune 7 months ago
parent
commit
c7e8c7da3e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/test.yml

+ 6 - 0
.github/workflows/test.yml

@@ -68,6 +68,12 @@ jobs:
               if: steps.webview-cache.outputs.cache-hit != 'true'
               run: cd webview-ui && npm ci
 
+            - name: Install local modules on windows
+              if: runner.os == 'Windows' && steps.root-cache.outputs.cache-hit == 'true'
+              run: |
+                  npm install eslint-plugin-eslint-rules 
+                  cd webview-ui/ && npm install eslint-plugin-eslint-rules
+
             - name: Set up NPM on Windows
               if: runner.os == 'Windows'
               run: |