From 90651f685f5c4084d506abf34c3cd82d9a91df58 Mon Sep 17 00:00:00 2001 From: DivyaHclTraining27 Date: Thu, 30 Jan 2025 23:26:11 +0530 Subject: [PATCH] Create mynodeaction.yml --- .github/workflows/mynodeaction.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/mynodeaction.yml diff --git a/.github/workflows/mynodeaction.yml b/.github/workflows/mynodeaction.yml new file mode 100644 index 00000000..2d0264bb --- /dev/null +++ b/.github/workflows/mynodeaction.yml @@ -0,0 +1,28 @@ +name: Node.js CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4.2.2 + + - name: Setup Node.js environment + uses: actions/setup-node@v4.2.0 + with: + node-version: '14' # Specify the Node.js version you need + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test