Add acceptance test for repo-clone

This commit is contained in:
Tyler McGoffin 2024-10-17 08:51:51 -07:00
parent 83cbdc4f36
commit 60e20ee531

View file

@ -0,0 +1,15 @@
# Use gh as a credential helper
exec gh auth setup-git
# Create a repository with a file so it has a default branch
exec gh repo create $ORG/$SCRIPT_NAME-$RANDOM_STRING --add-readme --private
# Defer repo cleanup
defer gh repo delete --yes $ORG/$SCRIPT_NAME-$RANDOM_STRING
# Clone the repo
exec gh repo clone $ORG/$SCRIPT_NAME-$RANDOM_STRING
# Ensure the repo was cloned
exec ls $SCRIPT_NAME-$RANDOM_STRING
stdout README.md