-
-
Save 6qat/3b4781ef2aea5871635c2bd9e6401a32 to your computer and use it in GitHub Desktop.
CircleCI configuration for Angular CLI
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/app-name | |
docker: | |
- image: circleci/node:6-browsers | |
steps: | |
- checkout | |
- restore_cache: | |
key: dependency-cache-{{ checksum "yarn.lock" }} | |
- run: | |
name: install-dependencies | |
command: yarn install | |
- save_cache: | |
key: dependency-cache-{{ checksum "yarn.lock" }} | |
paths: | |
- ~/.cache/yarn | |
- ./node_modules | |
- run: | |
name: angular-build | |
command: yarn ng -- build --prod --aot --no-progress | |
- run: | |
name: angular-test | |
command: yarn test -- --single-run --no-progress | |
- run: | |
name: angular-lint | |
command: yarn lint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment