From e511abdee5b2af947da27bdd080cb9def113be2d Mon Sep 17 00:00:00 2001 From: Rachelle Rathbone Date: Tue, 12 Dec 2023 14:47:47 +1100 Subject: [PATCH] splitting front and backend --- .github/workflows/codeql-analysis.yml | 17 ++++++++++++----- .github/workflows/codeql.yml | 4 ++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e027d0bb4..0b534bfc4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,17 +14,24 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 - - name: Build Node.js and React project + # Install dependencies for backend (Node.js) + - name: Install Node.js backend dependencies run: | - npm install - npm run build - working-directory: . + yarn install + working-directory: app + + # Build frontend (React) + - name: Build React frontend + run: | + yarn install --ignore-engines --network-timeout 1000000l + yarn build + working-directory: app/jenkins-for-jira-ui - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e6df52dad..1484fde59 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,10 +17,10 @@ jobs: with: fetch-depth: 2 - - run: npm install + - run: yarn install # Run npm install to install project dependencies for Node.js/React - - run: npm run build + - run: yarn build # Run the build command for your React project # You might need to adjust this based on your project's setup