Don't use pages as CI job name

https://docs.gitlab.com/ee/ci/yaml/README.html#pages
cb466dbe70
This commit is contained in:
curben 2018-10-01 12:35:37 +09:30
parent 19e3cd1bcb
commit 744b0a57ac
1 changed files with 23 additions and 6 deletions

View File

@ -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