From 8a74f71f90b69ecf8e48c10b5c5ad3692e28f412 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 10 Dec 2024 00:01:17 -0800 Subject: [PATCH] CI testing.. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++---- package.json | 6 ++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b21dbc..1faa9fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,10 +33,18 @@ jobs: with: node-version: "20" - - name: Clean install dependencies - run: | - rm -rf node_modules - npm ci + - name: Restore cache + id: restore-cache + uses: actions/cache/restore@v3 + with: + path: | + node_modules/ + key: deps-${{ github.event.pull_request.base.sha || github.sha }} + restore-keys: | + deps- + + - name: Install dependencies + run: npm install - name: Check formatting run: npm run format:check @@ -47,6 +55,14 @@ jobs: - name: Build frontend run: npm run build + - name: Save cache + uses: actions/cache/save@v3 + if: github.ref == 'refs/heads/master' + with: + path: | + node_modules/ + key: deps-${{ steps.restore-cache.outputs.cache-primary-key }} + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: diff --git a/package.json b/package.json index 384a9f5..5a5dca7 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,10 @@ "format:check": "prettier --check ." }, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.3", - "depcheck": "^1.4.7", "motion": "12.0.0-alpha.2", "next": "15.0.4", - "react": "^19.0.0", - "react-dom": "^19.0.0" + "react": "^18.2.0", + "react-dom": "^18.2.0" }, "devDependencies": { "@types/node": "^20",