Skip to content

Commit

Permalink
Upload code coverage statistics to Coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Aug 4, 2023
1 parent c5ed361 commit ee4f2f0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test

on: [ pull_request ]
on:
pull_request:
schedule:
- cron: '0 10 * * MON' # every Monday at 10:00 UTC (8:00 CEST, 7:00 CET)

jobs:
test:
Expand All @@ -27,5 +30,8 @@ jobs:
- name: Install
run: npm ci

- name: Test
- name: Test and generate code coverage info
run: npm test

- name: Upload code coverage info to Coveralls
uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/coverage
/dist
/node_modules
/site
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.github
/.idea
/coverage
/docker
/node_modules
/public
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# React UI

![npm](https://img.shields.io/npm/v/@react-ui-org/react-ui)
![Build and run tests](https://github.com/react-ui-org/react-ui/workflows/Build%20and%20run%20tests/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/react-ui-org/react-ui/badge.svg)](https://coveralls.io/github/react-ui-org/react-ui)
[![Tests](https://github.com/react-ui-org/react-ui/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/react-ui-org/react-ui/actions)
![npm bundle size](https://img.shields.io/bundlephobia/min/@react-ui-org/react-ui)

> React components for your design system.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build": "webpack --mode=production",
"copy": "cp \"src/docs/_assets/generated/reactui.css\" dist & cp \"src/docs/_assets/generated/reactui.js\" dist",
"eslint": "eslint --ext js,jsx src",
"jest": "jest src",
"jest": "jest src --coverage",
"lint": "npm run eslint && npm run markdownlint && npm run stylelint",
"markdownlint": "markdownlint-cli2 \"CONTRIBUTING.md\" \"README.md\" \"RELEASING.md\" \"src/**/*.md\"",
"postbuild": "npm run copy",
Expand Down

0 comments on commit ee4f2f0

Please sign in to comment.