Browse Source

yarn

pull/8/head
LecomteAdrien 6 years ago
parent
commit
f289b5dcbc
  1. 44
      .circleci/config.yml
  2. 5
      package.json

44
.circleci/config.yml

@ -1,24 +1,38 @@
workflows:
version: 2.1
build_and_test:
jobs:
- install
- yarn:
requires:
- install
- test:
requires:
- install
jobs:
build:
docker:
build: install
docker:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
steps:
- checkout # check out the code in the project directory
- run: echo "hello world"
- run: yarn global add node-gyp && yarn install
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- ~/.cache/yarn
test:
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
- run: yarn test:ci
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules

5
package.json

@ -20,9 +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}\"",
"generate": "hygen"
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
},
"dependencies": {
"@hapi/joi": "^16.1.5",

Loading…
Cancel
Save