Add IO generator and CI checks

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-02-08 11:35:57 +05:30
parent 46cc120d66
commit f6079a53f7
9 changed files with 188 additions and 34 deletions

10
git-hooks/pre-commit Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
### Copy this into .git/hooks and overwrite the empty one.
### This will ensure the bundle and ins-outs verification checks won't fail for you.
echo "----- Pre-commit -----"
set -ex
npx action-io-generator -o src/generated/inputs-outputs.ts
npm run bundle
git add -v dist/ src/generated