Skip to content

Compare ASTs of postgres sql queries (migrations)

License

Notifications You must be signed in to change notification settings

helpwave/pg-fingerprint-action

Repository files navigation

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. 🏗️ Package the TypeScript for distribution

    npm run bundle
  2. ✅ Run the tests

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

About

Compare ASTs of postgres sql queries (migrations)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published