Skip to content

Commit

Permalink
provide additional package insights
Browse files Browse the repository at this point in the history
- test coverage (coveralls)
- build/ci status (github)
- minzip size (bundlephobia)
- code quality (codefactor)

note: coveralls gh action pinned to sha after manual audit
  • Loading branch information
julesferreira committed Feb 22, 2022
1 parent ca45421 commit c2d702c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
run: npm run lint
- name: ensure formatting
run: npm run lint:formatting
- name: test
run: npm test
- name: build dist
run: npm run prepare
- name: test
run: npm run test:coverage
- name: coveralls
uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [use-last-call]
# [use-last-call] · [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/julesferreira/use-last-call/ci)](https://github.com/julesferreira/use-last-call/actions/workflows/ci.yml) [![Coveralls](https://img.shields.io/coveralls/github/julesferreira/use-last-call)](https://coveralls.io/github/julesferreira/use-last-call) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/use-last-call?label=min%20%2B%20gzip)](https://bundlephobia.com/package/use-last-call) [![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/julesferreira/use-last-call?color=04a363&label=codefactor)](https://www.codefactor.io/repository/github/julesferreira/use-last-call)

A custom [React Hook] that executes a callback when a user is exiting your app- in both desktop and mobile browsers.

Expand Down

0 comments on commit c2d702c

Please sign in to comment.