Skip to content

Commit b00d4e2

Browse files
authored
Add test coverage report (#18)
1 parent 4a277fb commit b00d4e2

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ jobs:
1616
- name: Lint
1717
run: npm run lint
1818
- name: Test
19-
run: npm run test
19+
run: |
20+
npx nyc --reporter=lcov npm run test
21+
- name: Covergae
22+
uses: coverallsapp/github-action@master
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Podil [![Build](https://github.com/podiljs/podil/actions/workflows/build.yaml/badge.svg)](https://github.com/podiljs/podil/actions/workflows/build.yaml) [![npm version](https://img.shields.io/npm/v/podil.svg?style=flat)](https://www.npmjs.com/package/podil) [![install size](https://packagephobia.com/badge?p=podil)](https://www.npmjs.com/package/podil)
1+
## Podil [![Build](https://github.com/podiljs/podil/actions/workflows/build.yaml/badge.svg)](https://github.com/podiljs/podil/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/podiljs/podil/badge.svg?branch=main)](https://coveralls.io/github/podiljs/podil?branch=main) [![npm version](https://img.shields.io/npm/v/podil.svg?style=flat)](https://www.npmjs.com/package/podil) [![install size](https://packagephobia.com/badge?p=podil)](https://www.npmjs.com/package/podil)
22

33
Lightweight and secure database migration tool for Node.js and Postgres. Podil lets
44
you version your database by executing SQL scripts automatically on application
@@ -47,14 +47,20 @@ By default, it looks for migrations in `./migrations`, you can pass a custom
4747
folder in the following way:
4848
4949
```shell
50-
await podil.migrate(connectionString, { migrationsDir: '/path/to/your/migrations' });
50+
await podil.migrate(
51+
connectionString,
52+
{ migrationsDir: '/path/to/your/migrations' },
53+
);
5154
```
5255
5356
It is recommended to verify the checksums of your scripts on every run. However,
5457
you can disable checksum verification using the `verifyChecksum` property:
5558
5659
```shell
57-
await podil.migrate(connectionString, { verifyChecksum: false });
60+
await podil.migrate(
61+
connectionString,
62+
{ verifyChecksum: false },
63+
);
5864
```
5965
6066
### Troubleshooting

0 commit comments

Comments
 (0)