Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
feat(ci) codecov (#5)
Browse files Browse the repository at this point in the history
* feat(ci) codecov

* fix(ci) test results location

* feat(readme) codecov badge

* feat(npm) automatic npm publish

* fix(ci) yml file format
  • Loading branch information
CHO authored Aug 16, 2019
1 parent 85bde87 commit 6e52f52
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ jobs:
yarn build
- name: test
run: yarn test
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish
on:
create:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish
uses: actions/npm@master
with:
args: "publish --access public"
secrets: ${{secrets.NPM_AUTH_TOKEN}}
- name: install, build
run: |
yarn install
yarn build
- name: test
run: yarn test
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# JsonToHtmlTable

![npm version](https://img.shields.io/npm/v/jsontohtmltable)
![Dependency Free](https://img.shields.io/david/cho0o0/JsonToHtmlTable)
![Current npm version](https://img.shields.io/npm/v/jsontohtmltable)
![Dependency free](https://img.shields.io/david/cho0o0/JsonToHtmlTable)
![Code coverage](https://img.shields.io/codecov/c/github/cho0o0/JsonToHtmlTable)

This is a dead simple Javascript library for converting json to HTML table.

## Features

- visualize nested json
- support json in string format
- callback support
- Visualize nested json
- Support json in string format
- Callback support

## How to use it

Expand Down

0 comments on commit 6e52f52

Please sign in to comment.