NicolasLepinette 5 years ago
parent
commit
a3f14b7571
  1. 33
      .circleci/config.yml
  2. 23
      .gitignore

33
.circleci/config.yml

@ -1,38 +1,19 @@
version: 2.1 version: 2.1
workflows:
starter:
jobs: jobs:
- yarn
install:
jobs:
- yarn
- checks:
requires:
- yarn
yarn:
docker:
- image: circleci/node:12
steps:
- 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:
- ./node_modules
checks:
build:
docker: docker:
- image: circleci/node:12
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
steps: steps:
- checkout
- checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-packages-{{checksum "yarn.lock"}} key: yarn-packages-{{checksum "yarn.lock"}}
- run:
name: install node
command: yarn global add node-gyp && yarn install
- run: yarn lint - run: yarn lint
- run: yarn format:check - run: yarn format:check
- run: yarn test:ci - run: yarn test:ci
- save_cache: - save_cache:
key: yarn-packages-{{checksum "yarn.lock"}} key: yarn-packages-{{checksum "yarn.lock"}}
paths: paths:
- ./node_modules
- ./node_module

23
.gitignore

@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading…
Cancel
Save