@@ -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
@@ -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": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user