add a workflow test

pull/2336/head
Keith Bauson 2025-12-04 13:26:04 -05:00
parent fb7124daff
commit b952e6d97e
1 changed files with 19 additions and 0 deletions

View File

@ -181,6 +181,25 @@ jobs:
with: with:
args: bash __test__/verify-worktree.sh worktree-test container-worktree-branch args: bash __test__/verify-worktree.sh worktree-test container-worktree-branch
# Credentials when checkout out into symlink
- name: Setup for symlink test
run: mkdir symlink-test-real && ln -s symlink-test-real symlink-test-link
- name: Checkout for worktree test
uses: ./
with:
path: symlink-test-link
- name: Verify symlink credentials
run: |
cd symlink-test-real
if git config --list --show-origin | grep -q "extraheader"; then
echo "Credentials are configured"
else
echo "ERROR: Credentials are NOT configured"
echo "Full git config:"
git config --list --show-origin
exit 1
fi
# Basic checkout using REST API # Basic checkout using REST API
- name: Remove basic - name: Remove basic
if: runner.os != 'windows' if: runner.os != 'windows'