From e4d37ab8dabe6d6aa2861b27ae224227331bd867 Mon Sep 17 00:00:00 2001 From: marrythomson70 Date: Thu, 21 Nov 2024 19:09:41 +0530 Subject: [PATCH 1/2] Create ci-cd.yaml --- ci-cd.yaml | 1 + 1 file changed, 1 insertion(+) create mode 100644 ci-cd.yaml diff --git a/ci-cd.yaml b/ci-cd.yaml new file mode 100644 index 0000000..f121bdb --- /dev/null +++ b/ci-cd.yaml @@ -0,0 +1 @@ +name From c7edd718009cbea9b1fe5850ece726c24b4b889b Mon Sep 17 00:00:00 2001 From: marrythomson70 Date: Thu, 21 Nov 2024 19:10:34 +0530 Subject: [PATCH 2/2] Update ci-cd.yaml --- ci-cd.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ci-cd.yaml b/ci-cd.yaml index f121bdb..f035cb9 100644 --- a/ci-cd.yaml +++ b/ci-cd.yaml @@ -1 +1,21 @@ -name +name: CI/CD Pipeline +on: + push: + branches: + - main +jobs: + build: + 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: 16 + - name: Install Dependency + run: npm install + - name: Run tests + run: npm test + - name: Deploy to production + run: npm run