Add acceptance test for repo-clone
This commit is contained in:
parent
83cbdc4f36
commit
60e20ee531
1 changed files with 15 additions and 0 deletions
15
acceptance/testdata/repos/repo-clone.txtar
vendored
Normal file
15
acceptance/testdata/repos/repo-clone.txtar
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue