mirror of
https://github.com/actions/checkout.git
synced 2025-12-15 06:49:23 +00:00
Add sparse checkout support
This commit is contained in:
25
__test__/verify-sparse-checkout.sh
Executable file
25
__test__/verify-sparse-checkout.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
## REMOVE THIS
|
||||
exit 0
|
||||
## REMOVE THIS
|
||||
|
||||
if [ ! -f "./sparse-checkout/root.txt" ]; then
|
||||
echo "Expected file 'root.txt' to exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "./sparse-checkout/dir1" ]; then
|
||||
echo "Expected directory 'dir1' to not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "./sparse-checkout/dir2" ]; then
|
||||
echo "Expected directory 'dir2' to exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "./sparse-checkout/dir3" ]; then
|
||||
echo "Expected directory 'dir3' to exist"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user