Skip to content

Commit

Permalink
Issue #3219157: Support Windows file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Jun 16, 2021
1 parent 480a920 commit b7b9de7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/functional_test__rector_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,14 +26,14 @@ jobs:
# START: SHARED DRUPAL INSTALL SETUP
- name: Setup Drupal
run: |
COMPOSER_MEMORY_LIMIT=-1 composer create-project drupal/recommended-project:~8 ../drupal --no-interaction
composer create-project drupal/recommended-project:~8 ../drupal --no-interaction
cd ..
mv drupal/* .
composer config minimum-stability dev
composer config prefer-stable true
composer config preferred-install dist
composer config repositories.drupal composer https://packages.drupal.org/8
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/core-dev:~8 --with-all-dependencies
composer require drupal/core-dev:~8 --with-all-dependencies
# We add a local repository `repositories.0` which takes precendence over the packagist repository that is automatically added.
- name: Install Drupal Rector
run: |
Expand Down
8 changes: 4 additions & 4 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/*']);
Expand Down

0 comments on commit b7b9de7

Please sign in to comment.