diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42f2a89..da73f1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/README.md b/README.md index 55b9062..5feb657 100644 --- a/README.md +++ b/README.md @@ -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.