Skip to content

Commit

Permalink
ci: correcting cache, trying to add tests to sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
rH4rtinger committed Oct 10, 2024
1 parent afebd76 commit df1467a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
src/webview-ui/build
src/webview-ui/node-modules
webview-ui/build
webview-ui/node-modules
key: node_modules-${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
node_modules-${{ matrix.os }}-node-${{ matrix.node-version }}
Expand Down Expand Up @@ -100,9 +100,10 @@ jobs:
- name: Restore cached node_modules
uses: actions/cache@v4
with:
path: node_modules
src/webview-ui/build
src/webview-ui/node-modules
path: |
node_modules
webview-ui/build
webview-ui/node-modules
key: node_modules-${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
node_modules-${{ matrix.os }}-node-${{ matrix.node-version }}
Expand Down Expand Up @@ -141,8 +142,8 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
src/webview-ui/build
src/webview-ui/node-modules
webview-ui/build
webview-ui/node-modules
key: node_modules-ubuntu-latest-node-22.x-${{ hashFiles('package-lock.json') }}
restore-keys: |
node_modules-ubuntu-latest-node-22.x
Expand All @@ -167,3 +168,4 @@ jobs:
-Dsonar.organization=aditosoftware
-Dsonar.eslint.reportPaths=eslint-results.json
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.tests=src/test,out/test

0 comments on commit df1467a

Please sign in to comment.