Skip to content

Commit

Permalink
ci: update circle ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
krunalshahcodes committed Aug 28, 2019
1 parent 2fea64a commit d30667a
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2.1

executors:
node:
parameters:
image:
type: string
default: "10"
docker:
- image: circleci/node:<< parameters.image >>
environment:
TERM: xterm
aliases:
# restore_cache: &restore_cache
# restore_cache:
# name: Restore Yarn Package Cache
# keys:
# - v{{ .Environment.versionCache }}-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}

install_node_modules: &install_node_modules
run:
name: Install Yarn Packages
command: yarn install --frozen-lockfile

# save_cache: &save_cache
# save_cache:
# name: Save Yarn Package Cache
# key: v{{ .Environment.versionCache }}-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
# paths:
# - /home/circleci/.cache

# store_results: &store_results
# store_test_results:
# path: results

# store_results_artifacts: &store_results_artifacts
# store_artifacts:
# path: results

jobs:
lint:
executor: node
steps:
- checkout
# - <<: *restore_cache
- <<: *install_node_modules
# - <<: *save_cache
- run:
name: Run ESLint
command: yarn run lint
# - <<: *store_results
# - <<: *store_results_artifacts
coveralls:
executor: node
steps:
- checkout
# - <<: *restore_cache
- <<: *install_node_modules
# - <<: *save_cache
- run:
name: Build Coverage
command: yarn run test:coveralls

workflows:
version: 2
lint-test:
jobs:
- lint
- coveralls

0 comments on commit d30667a

Please sign in to comment.