Created
April 9, 2019 09:01
-
-
Save reynish/e244782d1ab70c8bf1a7f8de475ec5f4 to your computer and use it in GitHub Desktop.
GitLab CI for create-react-app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:10.8 | |
stages: | |
- build | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- npm ci | |
Build: | |
stage: build | |
script: | |
- npm run test -- --coverage | |
- npm run build | |
coverage: /^All files\s*\|\s*(\d+)/ | |
artifacts: | |
name: "build_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}" | |
paths: | |
- build/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment