Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
ci: this
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham committed Jan 23, 2020
1 parent 406327b commit 01681bb
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,35 @@ defaults: &defaults
working_directory: ~/repo
resource_class: small

install_lint_test:
steps: &install_lint_test-steps
- checkout
- restore_cache:
keys:
- node-{{ .Environment.NODE_VERSION }}-cache-{{ checksum "./yarn.lock" }}
- run: yarn install
- run: yarn lint
- run: yarn type-check
- run: yarn test
- save_cache:
key: node-{{ .Environment.NODE_VERSION }}-cache-{{ checksum "./yarn.lock" }}
paths:
- ~/.yarn-cache
- ./node_modules
install_lint_test: &install_lint_test-steps
- checkout
- restore_cache:
keys:
- node-{{ .Environment.NODE_VERSION }}-cache-{{ checksum "./yarn.lock" }}
- run: yarn install
- run: yarn lint
- run: yarn type-check
- run: yarn test
- save_cache:
key: node-{{ .Environment.NODE_VERSION }}-cache-{{ checksum "./yarn.lock" }}
paths:
- ~/.yarn-cache
- ./node_modules

jobs:
install_lint_test-node10:
docker:
- image: circleci/node:10
<<: *defaults
steps:
- <<: *install_lint_test-steps
<<: *install_lint_test-steps

install_lint_test-node12:
docker:
- image: circleci/node:12
<<: *defaults
steps:
- <<: *install_lint_test-steps
<<: *install_lint_test-steps
- persist_to_workspace:
root: ~/repo
paths:
Expand Down

0 comments on commit 01681bb

Please sign in to comment.