Skip to content

Commit

Permalink
Update circleci config
Browse files Browse the repository at this point in the history
- use orb and auto caching feature
  • Loading branch information
Jaewoook committed Aug 9, 2022
1 parent dc8c768 commit 08733bc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
version: 2.1

orbs:
node: circleci/node@5.0.2

jobs:
prepare:
working_directory: ~/app
docker:
- image: 'circleci/node:latest'
executor: node/default
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn install --frozen-lockfile
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- node/install-packages:
pkg-manager: yarn
- persist_to_workspace:
root: ~/app
root: ~/project
paths:
- node_modules

build:
working_directory: ~/app
docker:
- image: 'circleci/node:latest'
executor: node/default
steps:
- checkout
- attach_workspace:
at: ~/app
at: ~/project
- run: yarn build
- persist_to_workspace:
root: ~/project
paths:
- node_modules
- build

lint:
working_directory: ~/app
docker:
- image: 'circleci/node:latest'
executor: node/default
steps:
- checkout
- attach_workspace:
at: ~/app
at: ~/project
- run: yarn lint

package:
working_directory: ~/app
docker:
- image: 'circleci/node:latest'
executor: node/default
steps:
- checkout
- attach_workspace:
at: ~/app
at: ~/project
- run: yarn package

workflows:
version: 2
build-test:
Expand Down
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tab_width = 2
[*.md]
trim_trailing_whitespace = false
insert_final_newline = false

[*.yml]
indent_size = 2

0 comments on commit 08733bc

Please sign in to comment.