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)
- Host: GitHub
- URL: https://github.com/helpwave/pg-fingerprint-action
- Owner: helpwave
- License: mit
- Created: 2023-10-14T15:49:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T21:59:11.000Z (about 2 years ago)
- Last Synced: 2024-12-26T03:42:02.534Z (about 1 year ago)
- Language: TypeScript
- Size: 3.11 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
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)
...
```