guitarrapc / git-shallow-clone-orb

circleci orb to execute git shallow clone for faster checkout.
https://circleci.com/orbs/registry/orb/guitarrapc/git-shallow-clone
MIT License
21 stars 11 forks source link

ci: add working-directory test #60

Closed guitarrapc closed 12 months ago

guitarrapc commented 12 months ago

Add test for #58 issue (PR: #59)

guitarrapc commented 12 months ago

confirm test failed. let's merge master to confirm issue fixed.

guitarrapc commented 12 months ago

failed reason is $CIRCLE_WORKING_DIRECTORY seems expand to ~ when working_directory not specified.

Cloning git repository
+ existing_repo=false
+ mkdir -p '~/test-working-directory/.'
+ cd '~/test-working-directory/.'
+ git clone --depth 1 git@github.com:guitarrapc/git-shallow-clone-orb.git .

Require realpath or similar solution?

use Shell Expantion is valid for bash, but not for sh.

foo="~"
echo ${foo/#\~/$HOME}
guitarrapc commented 12 months ago

Wait till GitHub recover from PR degrade status.

image

guitarrapc commented 12 months ago

ok, all test passed.