From 61145442760b2a028ca59191418cca085b99da43 Mon Sep 17 00:00:00 2001 From: Anisul Mahmud <52384280+AnisulMahmud@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:25:45 +0200 Subject: [PATCH] Update node.js.yml this is for CI in main --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 8b13789..a12a776 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1 +1,33 @@ +name: CI pipeline +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 14 # Adjust the version as needed + + - name: Install dependencies + run: npm ci + + # - name: Run tests + # run: npm test + + # - name: Generate Code Coverage + # run: npm run coverage # Assuming you have a script for running tests with coverage + + # - name: Upload Code Coverage Results + # uses: actions/upload-artifact@v2 + # with: + # name: coverage + # path: coverage