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/*']);