From 3de343f1351c96eb80cb9c8bea95543bba58777a Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Thu, 5 Jun 2025 10:37:53 +0200 Subject: [PATCH] ci: jobs --- .github/workflows/build-unit-tests.yml | 12 +++++++++++- .github/workflows/server-tests.yml | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-unit-tests.yml b/.github/workflows/build-unit-tests.yml index 1efdf42..d4c724d 100644 --- a/.github/workflows/build-unit-tests.yml +++ b/.github/workflows/build-unit-tests.yml @@ -20,7 +20,17 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: npm + cache: none + + # 2. Restore npm cache manually + - name: Restore npm cache + uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Check npm audit run: npm audit --production --audit-level=low diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index 52dee41..64377d2 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -20,7 +20,17 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: npm + cache: none + + # 2. Restore npm cache manually + - name: Restore npm cache + uses: actions/cache@v3 + id: npm-cache + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install Dependencies run: npm ci