Skip to content

Commit

Permalink
yarn doc (#55)
Browse files Browse the repository at this point in the history
* define "yarn doc"

* CI: verify docs up-to-date

* rebuild docs

* let verify steps fail verbosely
  • Loading branch information
jordanstephens authored Jun 17, 2020
1 parent 6bcb179 commit 91b5dc4
Show file tree
Hide file tree
Showing 15 changed files with 2,069 additions and 384 deletions.
20 changes: 19 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ jobs:
name: Run Jest
command: node_modules/.bin/jest spec

verify_docs:
docker:
- image: circleci/node:10.15.0
steps:
- checkout
- restore_cache:
name: Restore node_modules from cache
key: yarn-dependencies-v1-{{ checksum "package.json" }}
- run:
name: Build docs
command: yarn doc
- run:
name: Verify docs up-to-date
command: git diff --exit-code ./docs

verify_build:
docker:
- image: circleci/node:10.15.0
Expand All @@ -64,7 +79,7 @@ jobs:
command: yarn build
- run:
name: Verify build up-to-date
command: git diff --quiet --exit-code ./dist
command: git diff --exit-code ./dist

workflows:
version: 2
Expand All @@ -78,6 +93,9 @@ workflows:
- jest:
requires:
- yarn_install
- verify_docs:
requires:
- yarn_install
- verify_build:
requires:
- yarn_install
Loading

0 comments on commit 91b5dc4

Please sign in to comment.