From 81a71718ffb68c0f4571810e569945daac8c5c2b Mon Sep 17 00:00:00 2001 From: Mohamed-Fawaz Date: Fri, 23 Aug 2024 19:45:05 +0530 Subject: [PATCH] Initial React CI/CD YML --- .github/workflows/react.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/react.yml diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml new file mode 100644 index 0000000..23ff2ff --- /dev/null +++ b/.github/workflows/react.yml @@ -0,0 +1,32 @@ +name: React and Node Pipeline + +on: + push: + branches: + - develop + pull_request: + branches: + - develop + +jobs: + build-and-test: + name: Build and Test React App + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test + + - name: Build + run: npm run build \ No newline at end of file