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