Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: Krish Jain <krish.jain@chainguard.dev>
  • Loading branch information
krishjainx committed Jun 20, 2024
1 parent 0d091aa commit 2cbc9fc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions e2e-tests/test-git-checkout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,22 @@ pipeline:
[ "$hash" = 2b9bb894348794bc840a2ee7553d54a1c80b9278 ]
cd ..
rm -R tag-and-branch
- name: "Create cherry-pick file"
runs: |
echo "1.x/47a232bc4a16fc5d59cf12dea2e9e05fcbdfdff2" > /tmp/cherry-picks
- name: "process cherry-picks"
uses: git-checkout
working-directory: cherry-pick-test
with:
repository: ${{vars.giturl}}
branch: main
cherrypicks: /tmp/cherry-picks
- name: "check cherry-picks"
working-directory: cherry-pick-test
runs: |
hash=$(git rev-parse --verify HEAD)
# Replace the expected hash with the correct one after cherry-pick
expected_hash="replace_with_correct_hash"
[ "$hash" = "$expected_hash" ]
cd ..
rm -R cherry-pick-test

0 comments on commit 2cbc9fc

Please sign in to comment.