Skip to content

Commit 3f41c5c

Browse files
authored
Merge pull request #6 from bashleigh/feat/coveralls
Feat/coveralls
2 parents 49c23fc + 6757f3d commit 3f41c5c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,21 @@ jobs:
4545

4646
# Runs a set of commands using the runners shell
4747
- name: tests
48-
run: yarn test
48+
run: yarn test --coverage
49+
50+
- name: Coveralls Parallel
51+
uses: coverallsapp/github-action@master
52+
with:
53+
github-token: ${{ secrets.github_token }}
54+
flag-name: run-${{ matrix.test_number }}
55+
parallel: true
56+
57+
coverage:
58+
needs: test
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Coveralls coverage
62+
uses: coverallsapp/github-action@master
63+
with:
64+
github-token: ${{ secrets.github_token }}
65+
parallel-finished: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<a href="https://www.npmjs.com/package/typeorm-polymorphic"><img src="https://img.shields.io/npm/v/typeorm-polymorphic.svg"/></a>
33
<img src="https://github.com/bashleigh/typeorm-polymorphic/workflows/Tests/badge.svg"/>
44
<img src="https://camo.githubusercontent.com/a34cfbf37ba6848362bf2bee0f3915c2e38b1cc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265" />
5+
[![Coverage Status](https://coveralls.io/repos/github/bashleigh/typeorm-polymorphic/badge.svg?branch=master)](https://coveralls.io/github/bashleigh/typeorm-polymorphic?branch=master)
56

67
An extension package for polymorphic relationship management, declaration and repository queries for [typeorm](https://typeorm.io/)
78

0 commit comments

Comments
 (0)