Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
ci(docz): add circleci tests (#1027)
Browse files Browse the repository at this point in the history
* fix(gatsby-theme-docz): fix minor linting issue

* feat(docz): add circleci

* chore(docz): add bootstrap to ci

* ci(docz): clear cache

* ci(docz): add build step to install

* ci(docz): build only

* ci(docz-core): try without build

* ci(docz-core): remove __tests__ from include

* ci(docz-core): add build

* ci(docz-core): back to packages
  • Loading branch information
rakannimer authored Aug 27, 2019
1 parent f79f1bb commit 392af1c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/node:8.12
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v4-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v4-dependencies-

- run: yarn install && yarn bs && yarn packages

- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn ci
2 changes: 1 addition & 1 deletion core/docz-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"types": ["node"],
"typeRoots": ["../../node_modules/@types", "node_modules/@types"]
},
"include": ["src/**/*", "src/types.d.ts", "__tests__"],
"include": ["src/**/*", "src/types.d.ts"],
"exclude": ["node_modules/**"]
}
1 change: 0 additions & 1 deletion core/gatsby-theme-docz/src/components/NavLink/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @jsx jsx */
import React from 'react'
import { jsx } from 'theme-ui'
import { Link } from 'gatsby'
import { useDocs, useCurrentDoc } from 'docz'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"url": "https://github.com/pedronauck/docz.git"
},
"scripts": {
"ci": "npm run packages:lint && npm run packages:test",
"clean": "lerna clean",
"bs": "lerna bootstrap",
"packages": "run-s packages:*",
Expand Down

0 comments on commit 392af1c

Please sign in to comment.