This commit is contained in:
parent
b90258363d
commit
06fe077046
2 changed files with 6 additions and 1 deletions
|
@ -6,5 +6,6 @@ steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: node:16.18-alpine3.15
|
image: node:16.18-alpine3.15
|
||||||
commands:
|
commands:
|
||||||
- node index.js
|
- cat index.js
|
||||||
|
- node index.js 3000
|
||||||
|
|
||||||
|
|
4
index.js
4
index.js
|
@ -6,4 +6,8 @@ const server = createServer((req, res)=>{
|
||||||
res.end()
|
res.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
setTimeout(()=>{
|
||||||
|
process.exit()
|
||||||
|
}, 60000)
|
||||||
|
|
||||||
server.listen(process.argv[2]||3000)
|
server.listen(process.argv[2]||3000)
|
Loading…
Add table
Reference in a new issue