I am trying to test my test-cases of nodeJs.
Here is my gitlab-ci.yml
test:
type: test
script:
- npm run test
while executing CI/CD I got this error
/bin/sh: eval: line 117: npm: not found
How to solve this error?
I am trying to test my test-cases of nodeJs.
Here is my gitlab-ci.yml
test:
type: test
script:
- npm run test
while executing CI/CD I got this error
/bin/sh: eval: line 117: npm: not found
How to solve this error?
Share Improve this question asked Mar 14, 2019 at 8:47 Harsh PatelHarsh Patel 6,85010 gold badges43 silver badges77 bronze badges1 Answer
Reset to default 7You should specify that you want to use the node
image
test:
image: node:10
type: test
script:
- npm run test