From 744b0a57acffc0524dd9f37e5e8f2e6df1172738 Mon Sep 17 00:00:00 2001 From: curben Date: Mon, 1 Oct 2018 12:35:37 +0930 Subject: [PATCH] Don't use pages as CI job name https://docs.gitlab.com/ee/ci/yaml/README.html#pages cb466dbe70c852c3d32d5cc6fc8248cb8d4b8495 --- .gitlab-ci.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 369a2c7..eb4dd15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ image: node:latest # Use latest version of Node.js -pages: +test: cache: # add cache to 'node_modules' for speeding up builds paths: - node_modules/ # Node modules and dependencies @@ -11,11 +11,28 @@ pages: - snyk auth $SNYK_TOKEN - snyk protect # Apply patches to node modules - snyk test # Check node modules for vulnerability - # - hexo deploy # deploy the site. Uncomment this line for gitlab pages - - artifacts: - paths: - # - public # deploy to the 'public' folder. Uncomment this line for gitlab pages only: - master # this job will affect only the 'master' branch + + +# Uncomment below (and comment/remove above) lines for gitlab pages +# pages: + # cache: # add cache to 'node_modules' for speeding up builds + # paths: + # - node_modules/ # Node modules and dependencies + + # script: + # - npm install -g snyk hexo-cli + # - npm install # install node modules + # - snyk auth $SNYK_TOKEN + # - snyk protect # Apply patches to node modules + # - snyk test # Check node modules for vulnerability + # - hexo deploy # deploy the site. + + # artifacts: + # paths: + # - public # deploy to the 'public' folder. + + # only: + # - master # this job will affect only the 'master' branch