Skip to content

Commit

Permalink
feat(load-test): add pre-commit hook to convert typescript to javascr…
Browse files Browse the repository at this point in the history
…ipt for k6
  • Loading branch information
canzhen committed Apr 17, 2024
1 parent 6e945a7 commit 089cac2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hooks/javascript/load-test-convert-ts-to-js.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This should be used by load-test only,

currentBranch=$(git rev-parse --abbrev-ref HEAD)

if git diff-tree --no-commit-id --name-only -r HEAD..origin/$currentBranch | grep -q 'load-test/'; then
echo 'hahahha!'
cd load-test
npm run bundle
fi

0 comments on commit 089cac2

Please sign in to comment.