From 7635aab409d9ece715dab44ba663b5b43fca51ac Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Thu, 16 Mar 2023 04:59:36 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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.