Skip to content

Commit

Permalink
Merge pull request #9 from binary-butterfly/coveralls
Browse files Browse the repository at this point in the history
Add coveralls coverage reporting
  • Loading branch information
DysphoricUnicorn authored Apr 28, 2022
2 parents 1c06068 + df0420f commit 2781756
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: tests

on:
push:
branches:
Expand All @@ -13,9 +15,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm run test
- run: npm run coverage

- name: Test Report
uses: dorny/test-reporter@v1
Expand All @@ -24,3 +26,9 @@ jobs:
name: JEST Tests
path: reports/junit.xml
reporter: jest-junit

- name: Coveralls
uses: coverallsapp/github-action@master
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

A simple library for data filtering in JavaScript.

[![.github/workflows/test.yml](https://github.com/binary-butterfly/butterflyDataFilters/actions/workflows/test.yml/badge.svg)](https://github.com/binary-butterfly/butterflyDataFilters/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/binary-butterfly/butterflyDataFilters/badge.svg?branch=main)](https://coveralls.io/github/binary-butterfly/butterflyDataFilters?branch=main)

## Motivation

We needed a simple, yet expandable way to filter locally cached data in a single page application.
Expand Down

0 comments on commit 2781756

Please sign in to comment.