Skip to content

Commit

Permalink
Add test coverage report (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpota authored Dec 30, 2022
1 parent 4a277fb commit b00d4e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ jobs:
- name: Lint
run: npm run lint
- name: Test
run: npm run test
run: |
npx nyc --reporter=lcov npm run test
- name: Covergae
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 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)
## 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)

Lightweight and secure database migration tool for Node.js and Postgres. Podil lets
you version your database by executing SQL scripts automatically on application
Expand Down Expand Up @@ -47,14 +47,20 @@ By default, it looks for migrations in `./migrations`, you can pass a custom
folder in the following way:
```shell
await podil.migrate(connectionString, { migrationsDir: '/path/to/your/migrations' });
await podil.migrate(
connectionString,
{ migrationsDir: '/path/to/your/migrations' },
);
```
It is recommended to verify the checksums of your scripts on every run. However,
you can disable checksum verification using the `verifyChecksum` property:
```shell
await podil.migrate(connectionString, { verifyChecksum: false });
await podil.migrate(
connectionString,
{ verifyChecksum: false },
);
```
### Troubleshooting
Expand Down

0 comments on commit b00d4e2

Please sign in to comment.