From 9b38e62eafc87679d51149af6d3a3fa55b4d7ee9 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 21 Nov 2025 14:49:39 +0530 Subject: [PATCH] chore: upgraded node version in CI --- .github/workflows/ci.yml | 4 ++-- .github/workflows/ui-tests.yml | 4 ++-- frontend/vite.config.js | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 254ef1e7..45f69ea9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,9 +34,9 @@ jobs: with: python-version: '3.10' - name: setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' check-latest: true - name: setup cache for bench uses: actions/cache@v4 diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 6ff03b93..84651bf1 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -48,9 +48,9 @@ jobs: exit 1 fi - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 check-latest: true - name: Add to Hosts diff --git a/frontend/vite.config.js b/frontend/vite.config.js index ce4a0d9e..980a6171 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -32,6 +32,8 @@ export default defineConfig({ workbox: { cleanupOutdatedCaches: true, maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, + globDirectory: '/assets/lms/frontend', + globPatterns: ['**/*.{js,css,html,png,svg,woff2}'], }, manifest: false, }),