Add IO generator and CI checks

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-02-08 13:30:18 +05:30
parent 870f44bc9b
commit 57f7d3e6d9
9 changed files with 148 additions and 33 deletions

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

@ -0,0 +1,15 @@
#!/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 lint
npm run bundle
git add -v dist/ src/generated
set +x
echo "Success"