mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 09:10:16 +03:00
feat: updated test to make all checks in only one check
This commit is contained in:
parent
18e5a0dd62
commit
e12b86ed41
2 changed files with 8 additions and 16 deletions
|
@ -4,7 +4,7 @@
|
|||
for pattern in $(git ls-tree --name-only HEAD)
|
||||
do
|
||||
if [ -d "$pattern" ]; then
|
||||
if [[ "$pattern" != "__test__" && "$pattern" != ".github" && "$pattern" != "src" ]]; then
|
||||
if [[ "$pattern" != "__test__" && "$pattern" != ".github" && "$pattern" != "dist" ]]; then
|
||||
echo "Expected directory '$pattern' to not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -39,13 +39,13 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
# Check that src and its childrens has been fetched correctly
|
||||
if [ ! -d "./src" ]; then
|
||||
echo "Expected directory 'src' to exist"
|
||||
# Check that dist and its childrens has been fetched correctly
|
||||
if [ ! -d "./dist" ]; then
|
||||
echo "Expected directory 'dist' to exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for file in $(git ls-tree -r --name-only HEAD src)
|
||||
for file in $(git ls-tree -r --name-only HEAD dist)
|
||||
do
|
||||
if [ ! -f "$file" ]; then
|
||||
echo "Expected file '$file' to exist"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue