Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3219157: Support Windows file paths #156

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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