Browse Source

denisjunior

Add lint and test jobs
pull/1/merge
denisdalmeida04@gmail.com 6 years ago
parent
commit
bfcb82bddc
  1. 23
      .circleci/config.yml
  2. 4
      package.json

23
.circleci/config.yml

@ -22,6 +22,27 @@ jobs:
key: yarn-packages-{{ checksum "yarn.lock"}}
paths:
- ./node_modules
lint:
docker:
-
image: "circleci/node:12"
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock"}}
- run : yarn lint
- run : yarn format:check
test:
docker:
-
image: "circleci/node:12"
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock"}}
- run : yarn test:ci
orbs:
node: circleci/node@3.0.0
version: 2.1
@ -30,3 +51,5 @@ workflows:
jobs:
- hello
- install
- lint
- test

4
package.json

@ -20,8 +20,8 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"./**/*.{yaml,yml}\"",
"format:check": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\" \"./**/*.{yaml,yml}\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
"generate": "hygen"
},
"dependencies": {

Loading…
Cancel
Save