From 178c2ec656829700e336cc5285bea33c88d4d6ca Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Wed, 16 Jun 2021 15:14:51 -0500 Subject: [PATCH] Issue #3219157: Support Windows file paths --- .github/workflows/functional_test__rector_examples.yml | 5 ++++- rector.php | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/functional_test__rector_examples.yml b/.github/workflows/functional_test__rector_examples.yml index 626382f8..bf253fcc 100644 --- a/.github/workflows/functional_test__rector_examples.yml +++ b/.github/workflows/functional_test__rector_examples.yml @@ -7,7 +7,10 @@ jobs: run_functional_test: name: Run functional test # START: SHARED SETUP - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: ['ubuntu-latest', 'windows-latest'] steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 diff --git a/rector.php b/rector.php index f23db143..ca5a5811 100644 --- a/rector.php +++ b/rector.php @@ -15,10 +15,10 @@ $drupalFinder->locateRoot(__DIR__); $drupalRoot = $drupalFinder->getDrupalRoot(); $parameters->set(Option::AUTOLOAD_PATHS, [ - $drupalRoot . '/core', - $drupalRoot . '/modules', - $drupalRoot . '/profiles', - $drupalRoot . '/themes' + \realpath($drupalRoot . '/core'), + \realpath($drupalRoot . '/modules'), + \realpath($drupalRoot . '/profiles'), + \realpath($drupalRoot . '/themes') ]); $parameters->set(Option::SKIP, ['*/upgrade_status/tests/modules/*']);