From 33e025f278f343942e8523a85443702b941b5790 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 22 Sep 2026 19:46:33 +0530 Subject: [PATCH] Test Node CI-CD 4 runner --- .github/workflows/build.yml | 24 +++++++----------------- package.json | 4 ++-- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfb7643..6b2916c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Node CI-CD 3 Test +name: Node.js CI on: push: @@ -15,30 +15,20 @@ jobs: - name: Check Git shell: powershell - run: | - git --version + run: git --version - name: Check Node.js shell: powershell - run: | - node --version + run: node --version - name: Check npm shell: powershell - run: | - npm --version + run: npm --version - name: Install dependencies shell: powershell - run: | - npm ci + run: npm ci - - name: Run tests + - name: Check application shell: powershell - run: | - npm test - - - name: Build application - shell: powershell - run: | - npm run build + run: node --check app.js diff --git a/package.json b/package.json index e9776f2..0ff12f6 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "my-node-app", "version": "1.0.0", - "main": "index.js", + "main": "app.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "start": "node app.js" }, "keywords": [], "author": "",