Skip to content

Commit

Permalink
Make custom dir if it doesn't exist already
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikachu920 committed Feb 5, 2024
1 parent b609984 commit 6391181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test_script_directory="${INPUT_TEST_SCRIPT_DIRECTORY}"
skript_repo_ref="${INPUT_SKRIPT_REPO_REF}"
run_vanilla_tests="${INPUT_RUN_VANILLA_TESTS}"
skript_test_directory="/skript/src/test/skript/tests"
custom_test_directory="${skript_test_directory:?}/custom"

echo "Configuration:"
echo " Test script directory: $test_script_directory"
Expand All @@ -19,5 +20,5 @@ if [ "$run_vanilla_tests" = "false" ]; then
echo "Deleting vanilla tests"
rm -rf "${skript_test_directory:?}/*"
fi
cp -r "/github/workspace/$test_script_directory" "${skript_test_directory:?}/custom"
mkdir "custom_test_directory" && cp -r "/github/workspace/$test_script_directory" "$custom_test_directory"
./gradlew quickTest

0 comments on commit 6391181

Please sign in to comment.