Update .gitlab-ci.yml file

This commit is contained in:
Ava Gaiety Wroten 2023-03-16 04:59:36 +00:00
parent 71c233004d
commit 7635aab409

View file

@ -16,6 +16,12 @@
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
image: node:latest
cache:
paths:
- node_modules/
stages: # List of stages for jobs, and their order of execution
- build
- test
@ -32,6 +38,7 @@ unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests..."
- npm i
- npm test
lint-test-job: # This job also runs in the test stage.