mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-12-06 03:50:39 +00:00
add a workflow test
This commit is contained in:
parent
fb7124daff
commit
b952e6d97e
1 changed files with 19 additions and 0 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue