Skip to content

Commit

Permalink
chore: Update coverage badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 20, 2021
1 parent 91278a7 commit 582a162
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -20,20 +20,29 @@ jobs:
- run: npm run build
- run: npm run coverage

- run: npm i coverage-badges-cli -g
- run: coverage-badges

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.2.0
uses: jaywcjlove/create-tag-action@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.3
uses: jaywcjlove/changelog-generator@v1.4.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter-author: (小弟调调™|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
Expand All @@ -56,8 +65,3 @@ jobs:
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
recursive-readdir-files
---

[![Coverage Status](https://coveralls.io/repos/github/jaywcjlove/recursive-readdir-files/badge.svg?branch=main)](https://coveralls.io/github/jaywcjlove/recursive-readdir-files?branch=main) [![npm version](https://img.shields.io/npm/v/recursive-readdir-files.svg)](https://www.npmjs.com/package/recursive-readdir-files)
[![Coverage Status](https://jaywcjlove.github.io/recursive-readdir-files/coverage/badges.svg)](https://jaywcjlove.github.io/recursive-readdir-files/coverage/lcov-report/) [![npm version](https://img.shields.io/npm/v/recursive-readdir-files.svg)](https://www.npmjs.com/package/recursive-readdir-files)

Node.js module to list all files in a directory or any subdirectories.

Expand Down
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -5,8 +5,8 @@
"main": "lib/index.js",
"scripts": {
"start": "node lib/index.js",
"watch": "tsbb watch --no-esm --disable-babel ",
"build": "tsbb build --no-esm --disable-babel ",
"watch": "tsbb watch --disable-babel ",
"build": "tsbb build --disable-babel ",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
},
Expand All @@ -24,6 +24,12 @@
"recursive-readdir-files",
"files"
],
"jest": {
"coverageReporters": [
"lcov",
"json-summary"
]
},
"license": "MIT",
"devDependencies": {
"@types/jest": "27.0.1",
Expand Down

0 comments on commit 582a162

Please sign in to comment.