Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 634 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 634 Bytes

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)
    
    ...