From 3917e62891a56bf8c0efed923c380271344bf6ca Mon Sep 17 00:00:00 2001 From: Abhiman14 Date: Sat, 6 Dec 2025 08:05:28 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33f4d4d313d..9e4b8408d19 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,34 @@ -name: Node.js CI +name: Node.js CI/CD Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Start application + run: npm startname: Node.js CI on: push: