Skip to content

Instantly share code, notes, and snippets.

@reynish
Created April 9, 2019 09:01
Show Gist options
  • Save reynish/e244782d1ab70c8bf1a7f8de475ec5f4 to your computer and use it in GitHub Desktop.
Save reynish/e244782d1ab70c8bf1a7f8de475ec5f4 to your computer and use it in GitHub Desktop.
GitLab CI for create-react-app
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