From d20e0919138bb8c90ac9bd3d1a000fa9267a4a11 Mon Sep 17 00:00:00 2001 From: Muhammad Ashhub Ali Date: Sun, 12 May 2024 20:10:03 +0500 Subject: [PATCH] Updated Workflow --- .github/workflows/RegressionTesting.yaml | 22 ++++++++++++++++++++++ view_generator_serv/package.json | 1 + 2 files changed, 23 insertions(+) diff --git a/.github/workflows/RegressionTesting.yaml b/.github/workflows/RegressionTesting.yaml index ab24d99..69d9d3a 100644 --- a/.github/workflows/RegressionTesting.yaml +++ b/.github/workflows/RegressionTesting.yaml @@ -46,6 +46,28 @@ jobs: run: | cd UserAccMgmtServ npm run testCI + + test-ViewGeneratorServ: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: | + cd view_generator_serv + npm install + + - name: Run tests + run: | + cd view_generator_serv + npm run testCI diff --git a/view_generator_serv/package.json b/view_generator_serv/package.json index 31cec74..b85fc74 100644 --- a/view_generator_serv/package.json +++ b/view_generator_serv/package.json @@ -29,6 +29,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", + "testCI": "CI=true react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", "eject": "react-scripts eject" }, "eslintConfig": {