An open API service indexing awesome lists of open source software.

https://github.com/helpwave/pg-fingerprint-action

Compare ASTs of postgres sql queries (migrations)
https://github.com/helpwave/pg-fingerprint-action

Last synced: 7 months ago
JSON representation

Compare ASTs of postgres sql queries (migrations)

Awesome Lists containing this project

README

          

# pg-fingerprint-action

This action, given a list of migration files (or any postgres sql file), checks if their AST's fingerprints remain unchanged in a PR.

## Initial Setup

After you've cloned the repository to your local machine or codespace, you'll
need to perform some initial setup steps before you can develop your action.

1. :building_construction: Package the TypeScript for distribution

```bash
npm run bundle
```

1. :white_check_mark: Run the tests

```bash
$ npm test

PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)

...
```