diff --git a/action.yml b/action.yml index 18b0d9d..e4a98bc 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,10 @@ name: 'Skript Tests' description: 'Runs Skript tests' inputs: + skript_repo_url: + description: "Git repository URL for Skript" + required: false + default: "https://github.com/SkriptLang/Skript.git" test_script_directory: description: 'The directory containing the tests to run' required: true diff --git a/run-tests.py b/run-tests.py index 9c39f96..93ea67b 100644 --- a/run-tests.py +++ b/run-tests.py @@ -23,7 +23,10 @@ class EnvironmentResource(TypedDict): test_script_directory = github_workspace_directory / os.environ['INPUT_TEST_SCRIPT_DIRECTORY'] skript_repo_ref = os.environ.get("INPUT_SKRIPT_REPO_REF", None) run_vanilla_tests = os.environ.get("INPUT_RUN_VANILLA_TESTS", None) == "true" -skript_repo_git_url = "https://github.com/SkriptLang/Skript.git" +skript_repo_git_url = os.environ.get( + "INPUT_SKRIPT_REPO_URL", + "https://github.com/SkriptLang/Skript.git" +) skript_repo_path = Path("/skript") skript_test_directory = skript_repo_path / "src" / "test" / "skript" / "tests" custom_test_directory = skript_test_directory / "custom"