diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f4c28f..5f30146 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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.