From 70dea5e97c6b5052407c8d5d93e10b3792db92da Mon Sep 17 00:00:00 2001 From: liviu Date: Sat, 6 Dec 2025 10:50:32 +0100 Subject: [PATCH] Update .github/workflows/sonar.yml --- .github/workflows/sonar.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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