Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

test: setting up a github workflow for running unit tests #434

Merged
merged 2 commits into from
Jan 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion packages/api-explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,7 +20,7 @@ npm install --save @readme/api-explorer
oasFiles={Object}
flags={Object}
appearance={{
referenceLayout: String,
referenceLayout: String,
}},
oauth={Boolean}
suggestedEdits={Boolean}
Expand Down
5 changes: 3 additions & 2 deletions packages/api-logs/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 4 additions & 0 deletions packages/markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
3 changes: 3 additions & 0 deletions packages/oas-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/oas-to-har/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/syntax-highlighter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/variable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down