From 1680d5d8a9ef5dd481325b11926876948d04863d Mon Sep 17 00:00:00 2001 From: Adnan UL Mustafa <150100234+Adnanmd76@users.noreply.github.com> Date: Thu, 16 Oct 2025 16:28:00 +0500 Subject: [PATCH] refactor: optimize CI workflow for ClarityVault2026 Updated CI workflow to use Node.js v20 and added caching for Node.js modules. Signed-off-by: Adnan UL Mustafa <150100234+Adnanmd76@users.noreply.github.com> --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 798f06b..a22e4c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Wallet UI CI +name: ClarityVault2026 CI on: push: @@ -14,13 +14,21 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Setup Node.js + - name: Setup Node.js v20 uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '20' + + - name: Cache Node.js modules + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install dependencies - run: npm install + run: npm ci - name: Run tests run: npm run test