Skip to content

Commit

Permalink
Add circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
benxgao committed Nov 3, 2019
1 parent 3b2e4dd commit 582a777
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 16 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10.16.3
steps:
- checkout
- restore_cache:
keys:
- yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-packages-v1-{{ .Branch }}-
- yarn-packages-v1-
- save_cache:
paths:
- ~/.tmp/yarn
key: yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn
- run:
name: Run lint
command: yarn lint
- run:
name: Run unit tests
command: yarn test --coverage
- store_test_results:
path: coverage

workflows:
version: 2
pull-request-build:
jobs:
- build
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ packages/**/*.d.ts
.vscode
.iml
api_docs
.tmp
32 changes: 16 additions & 16 deletions docs/examples/rx/11_chose_fee_asset_to_pay_tx_fee/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "06_make_transfer",
"version": "0.2.0",
"description": "Example showing how to make a transfer",
"main": "index.js",
"author": "chevdor",
"license": "MIT",
"scripts": {
"clean": "rimraf node_modules",
"start": "node index.js"
},
"dependencies": {
"@cennznet/api": "^*"
},
"devDependencies": {
"rimraf": "^2.6.2"
}
"name": "11_chose_fee_asset_to_pay_tx_fee",
"version": "0.2.0",
"description": "Example showing how to make a transfer",
"main": "index.js",
"author": "chevdor",
"license": "MIT",
"scripts": {
"clean": "rimraf node_modules",
"start": "node index.js"
},
"dependencies": {
"@cennznet/api": "^*"
},
"devDependencies": {
"rimraf": "^2.6.2"
}
}

0 comments on commit 582a777

Please sign in to comment.