diff --git a/.circleci/config.yml b/.circleci/config.yml index 0e2aaa5..f40533d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,4 +18,33 @@ jobs: key: yarn-cache{{ checksum "yarn.lock" }} paths: - ./node_modules + + tests: + docker: + - image: "circleci/node:12" + steps: + - checkout + - restore_cache: + key: yarn-cache{{ checksum "yarn.lock" }} + - run: + name: test-ci + command: yarn test:ci + - save_cache: + key: yarn-cache{{ checksum "yarn.lock" }} + paths: + - ./node_modules + lint: + docker: + - image: "circleci/node:12" + steps: + - checkout + - restore_cache: + key: yarn-cache{{ checksum "yarn.lock" }} + - run: + name: lint-ci + command: yarn lint && yarn format:check + - save_cache: + key: yarn-cache{{ checksum "yarn.lock" }} + paths: + - ./node_modules \ No newline at end of file diff --git a/package.json b/package.json index a4f54c1..96ef36c 100644 --- a/package.json +++ b/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": {