From 418d8e92a7e1db63f3c1a80392b317ecb181f4d3 Mon Sep 17 00:00:00 2001 From: Christian Fritsch Date: Mon, 13 Jun 2022 17:13:31 +0200 Subject: [PATCH] Use stan file from project folder (#68) * Use stan file from project folder * Rename testing.yml to tests.yml --- .github/workflows/{testing.yml => tests.yml} | 0 lib/stages/deprecation.sh | 6 +----- 2 files changed, 1 insertion(+), 5 deletions(-) rename .github/workflows/{testing.yml => tests.yml} (100%) diff --git a/.github/workflows/testing.yml b/.github/workflows/tests.yml similarity index 100% rename from .github/workflows/testing.yml rename to .github/workflows/tests.yml diff --git a/lib/stages/deprecation.sh b/lib/stages/deprecation.sh index 5e28bf1..1084f72 100644 --- a/lib/stages/deprecation.sh +++ b/lib/stages/deprecation.sh @@ -8,12 +8,8 @@ _stage_deprecation() { project_location=$(get_project_location) - if [ ! -f "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}/phpstan.neon" ]; then - cp phpstan.neon "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}" - fi - cd "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}" || exit - composer exec phpstan -- analyse --memory-limit "${PHPSTAN_MEMORY_LIMIT}" "${project_location}" + composer exec phpstan -- analyse --memory-limit "${PHPSTAN_MEMORY_LIMIT}" "${project_location}" --configuration="${project_location}/phpstan.neon" cd - || exit fi }