From 81032c12ae411d194b8551058f99960b98fb33fe Mon Sep 17 00:00:00 2001 From: Mubaraq <107214637+mubking@users.noreply.github.com> Date: Thu, 26 Feb 2026 13:21:25 +0100 Subject: [PATCH] Modify CI workflow for dependency installation Updated CI workflow to use 'npm install' instead of 'npm ci' for both frontend and backend. Removed caching steps and added a newline at the end of the file. --- .github/workflows/ci.yml | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a634bd2..672159d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,4 @@ -# Continuous Integration workflow for FlowFi -# Covers frontend linting/build, backend build/test, and Soroban contract build/test. name: CI - on: push: branches: [ main, develop ] @@ -15,22 +12,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - name: Install dependencies - run: npm ci + run: npm install working-directory: frontend - - name: Lint run: npm run lint working-directory: frontend - - name: Build run: npm run build working-directory: frontend @@ -52,30 +43,22 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' - cache-dependency-path: backend/package-lock.json - - name: Install dependencies - run: npm ci + run: npm install working-directory: backend - - name: Generate Prisma Client run: npx prisma generate working-directory: backend - - name: Build run: npm run build working-directory: backend - - name: Run Backend Tests run: npm test working-directory: backend @@ -88,22 +71,18 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable with: toolchain: stable targets: wasm32-unknown-unknown - - name: Rust Cache uses: Swatinem/rust-cache@v2 with: workspaces: "contracts -> target" - - name: Build Contracts run: cargo build --target wasm32-unknown-unknown --release working-directory: contracts - - name: Run Contract Tests run: cargo test working-directory: contracts