Test Node CI-CD 4 runner
Node.js CI / build (push) Successful in 21s

This commit is contained in:
John
2026-09-22 19:46:33 +05:30
parent 7f3303e3a8
commit 33e025f278
2 changed files with 9 additions and 19 deletions
+7 -17
View File
@@ -1,4 +1,4 @@
name: Node CI-CD 3 Test name: Node.js CI
on: on:
push: push:
@@ -15,30 +15,20 @@ jobs:
- name: Check Git - name: Check Git
shell: powershell shell: powershell
run: | run: git --version
git --version
- name: Check Node.js - name: Check Node.js
shell: powershell shell: powershell
run: | run: node --version
node --version
- name: Check npm - name: Check npm
shell: powershell shell: powershell
run: | run: npm --version
npm --version
- name: Install dependencies - name: Install dependencies
shell: powershell shell: powershell
run: | run: npm ci
npm ci
- name: Run tests - name: Check application
shell: powershell shell: powershell
run: | run: node --check app.js
npm test
- name: Build application
shell: powershell
run: |
npm run build
+2 -2
View File
@@ -1,9 +1,9 @@
{ {
"name": "my-node-app", "name": "my-node-app",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "app.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "start": "node app.js"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",