Skip to content

Commit f5570b5

Browse files
committed
coverage badge
1 parent 63ffe6e commit f5570b5

3 files changed

Lines changed: 29 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
1111
node-version: '20.x'
1212
- name: Install dependencies
1313
run: yarn
14-
- name: Building code
14+
- name: Building Code
1515
run: yarn build
16-
- name: Run tests
17-
run: yarn test
16+
- name: Run Tests
17+
run: yarn test
18+
- name: Update Coverage
19+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
20+
uses: we-cli/coverage-badge-action@main

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
# Types
1+
# Stackpress Library
22

3-
Common typescript types
3+
[![cov](https://stackpress.github.io/lib/badges/coverage.svg)](https://github.com/stackpress/lib/actions)
4+
5+
Shared library used across stackpress projects
6+
7+
## Install
8+
9+
```bash
10+
$ npm i @stackpress/lib
11+
```
12+
13+
## Usage
14+
15+
```js
16+
import { EventEmitter } from '@stackpress/lib';
17+
```

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@stackpress/types",
3-
"version": "0.3.17",
2+
"name": "@stackpress/lib",
3+
"version": "0.3.19",
44
"license": "Apache-2.0",
5-
"description": "Common types in typescript",
5+
"description": "Shared library used across stackpress projects",
66
"author": "Chris <chris@incept.asia>",
7-
"homepage": "https://github.com/stackpress/types",
8-
"bugs": "https://github.com/stackpress/types/issues",
9-
"repository": "stackpress/types",
7+
"homepage": "https://github.com/stackpress/lib",
8+
"bugs": "https://github.com/stackpress/lib/issues",
9+
"repository": "stackpress/lib",
1010
"main": "index.js",
1111
"files": [
1212
"dist",
@@ -17,7 +17,7 @@
1717
],
1818
"scripts": {
1919
"build": "tsc",
20-
"test": "nyc ts-mocha tests/*.test.ts"
20+
"test": "nyc -r text -r json-summary ts-mocha tests/*.test.ts"
2121
},
2222
"dependencies": {
2323
"@inquirer/prompts": "7.1.0"

0 commit comments

Comments
 (0)