diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 5824823..bdb9e15 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -18,6 +18,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Restore npm cache + uses: https://code.forgejo.org/forgejo/cache-action@v3 + with: + key: npm-${{ hashFiles('package-lock.json') }} + path: ~/.npm - name: Setup node environment uses: actions/setup-node@v4 with: @@ -25,6 +30,11 @@ jobs: cache: "npm" - name: Install dependencies run: npm ci + - name: Save npm cache + uses: https://code.forgejo.org/forgejo/cache-action@v3 + with: + key: npm-${{ hashFiles('package-lock.json') }} + path: ~/.npm - name: Run tests and generate coverage run: npm run coverage # continue-on-error: true