Skip to content

Commit

Permalink
feat: add coverage tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde committed Feb 10, 2021
1 parent a80ec3e commit 9165750
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: CI

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -23,6 +23,11 @@ jobs:
- run: yarn
- run: yarn lint
- run: yarn build
- run: yarn test
- run: yarn test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true
CI: true

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/dist
/storybook-static
.DS_Store
/coverage

# Firebase
firebase-debug.log*
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</p>
<br/>

[![Coverage Status](https://coveralls.io/repos/github/CartoDB/carto-react-lib/badge.svg?branch=master)](https://coveralls.io/github/CartoDB/carto-react-lib?branch=master)

This is the official CARTO library for working with React. It is used by the [CARTO for React](https://github.com/CartoDB/cra-template-carto) templates.

There is a Storybook guide with the UI components and how to use them at [CARTO for React - UI Components](https://storybook-react.carto.com/)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint:fix": "eslint 'src/**/*.{js,jsx}' --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --collectCoverage --",
"format": "npx prettier --write \"**/*.+(js|jsx|json|md)\"",
"storybook": "start-storybook -c src/ui/.storybook -p 6006",
"build-storybook": "build-storybook -c src/ui/.storybook",
Expand Down

0 comments on commit 9165750

Please sign in to comment.