diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..036987769 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: npm install + run: | + npm install + npx lerna bootstrap --concurrency 2 + + - name: tests + run: npm test diff --git a/README.md b/README.md index 3f0b0580e..42929918f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Open source components that make up ReadMe's API explorer. -[![CircleCI](https://circleci.com/gh/readmeio/api-explorer.svg?style=svg&circle-token=2a91256819c6da2e388896859d4f7fbb34ec9d84)](https://circleci.com/gh/readmeio/api-explorer) +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer) [![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) diff --git a/packages/api-explorer/README.md b/packages/api-explorer/README.md index 471736a21..7ee3f9225 100644 --- a/packages/api-explorer/README.md +++ b/packages/api-explorer/README.md @@ -2,6 +2,8 @@ UI components for the API explorer +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/api-explorer) + [![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) ## Installation @@ -18,7 +20,7 @@ npm install --save @readme/api-explorer oasFiles={Object} flags={Object} appearance={{ - referenceLayout: String, + referenceLayout: String, }}, oauth={Boolean} suggestedEdits={Boolean} diff --git a/packages/api-logs/README.md b/packages/api-logs/README.md index f58c05714..7afcd79b1 100644 --- a/packages/api-logs/README.md +++ b/packages/api-logs/README.md @@ -1,7 +1,8 @@ # api-logs -[![build status](https://secure.travis-ci.org/dok/api-logs.svg)](http://travis-ci.org/dok/api-logs) -[![dependency status](https://david-dm.org/dok/api-logs.svg)](https://david-dm.org/dok/api-logs) +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/api-logs) + +[![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) ## Installation diff --git a/packages/markdown/README.md b/packages/markdown/README.md index 422a90f59..7da027739 100644 --- a/packages/markdown/README.md +++ b/packages/markdown/README.md @@ -2,6 +2,10 @@ ReadMe's React-based Markdown parser +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/markdown) + +[![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) + ## Installation ``` diff --git a/packages/oas-extensions/README.md b/packages/oas-extensions/README.md index 56051ced7..a9e19e05d 100644 --- a/packages/oas-extensions/README.md +++ b/packages/oas-extensions/README.md @@ -2,6 +2,9 @@ A list of extensions that ReadMe has added to the OAS spec https://readme.readme.io/v2.0/docs/swagger-extensions + +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/oas-extensions) + [![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) ## Installation diff --git a/packages/oas-to-har/README.md b/packages/oas-to-har/README.md index 60d046dbb..c9db0e26e 100644 --- a/packages/oas-to-har/README.md +++ b/packages/oas-to-har/README.md @@ -2,6 +2,8 @@ Utility to transform an OAS operation into a HAR representation +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/oas-to-har) + [![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) ## Installation diff --git a/packages/syntax-highlighter/README.md b/packages/syntax-highlighter/README.md index 42baed9d1..232a4964b 100644 --- a/packages/syntax-highlighter/README.md +++ b/packages/syntax-highlighter/README.md @@ -2,6 +2,8 @@ Syntax highlighter used on ReadMe.io +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/syntax-highlighter) + [![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) ## Installation diff --git a/packages/variable/README.md b/packages/variable/README.md index 58338d049..a0e8b4439 100644 --- a/packages/variable/README.md +++ b/packages/variable/README.md @@ -2,6 +2,10 @@ React component for Variables +[![Build](https://github.com/readmeio/api-explorer/workflows/CI/badge.svg)](https://github.com/readmeio/api-explorer/tree/master/packages/variable) + +[![](https://d3vv6lp55qjaqc.cloudfront.net/items/1M3C3j0I0s0j3T362344/Untitled-2.png)](https://readme.io) + ## Installation ```