Last active
November 5, 2019 10:05
-
-
Save gpincheiraa/b6b7bb97d5208da3e350273c8c95a49e to your computer and use it in GitHub Desktop.
ngChile-09-11-2019-circle-ci-config
This file contains 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.1 | |
aliases: | |
restore_cache: &restore_cache | |
restore_cache: | |
name: Restore Npm Package Cache | |
keys: | |
- v1-dependencies-{{ checksum "package-lock.json" }} | |
save_cache: &save_cache | |
save_cache: | |
name: Save NPM modules cache | |
paths: | |
- ./node_modules | |
key: v1-dependencies-{{ checksum "package-lock.json" }} | |
store_dist: &store_dist | |
save_cache: | |
name: Save dist folder | |
paths: | |
- dist | |
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }} | |
restore_dist: &restore_dist | |
restore_cache: | |
name: Restore built dist folder | |
keys: | |
- v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }} | |
install_node_modules: &install_node_modules | |
run: | |
name: Install local dependencies | |
command: npm ci | |
when: always | |
show_bash_version: &show_bash_version | |
run: | |
name: Show current bash version | |
command: echo ${BASH_VERSION} | |
jobs: | |
linter: | |
docker: | |
- image: circleci/node:10 | |
working_directory: ~/repo | |
steps: | |
- checkout | |
- <<: *show_bash_version | |
- <<: *restore_cache | |
- <<: *install_node_modules | |
- <<: *save_cache | |
- run: | |
name: Linting | |
command: ./ci/linter | |
workflows: | |
version: 2 | |
angular-chile-pipeline: | |
jobs: | |
- linter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment