Skip to content

Commit

Permalink
Fix end 2 end test in Github
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-granados committed Aug 26, 2024
1 parent 85b17a1 commit 779ea70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ jobs:
working-directory: ${{ matrix.directory }}

# we recover the dependent file
- run: patch -u src/DependencyTestClass.php -i patches/DependencyTestClass.php.patch
- run: mv src/DependentTestClass.php.bak src/DependentTestClass.php
working-directory: ${{ matrix.directory }}

# if we run rector again, it should continue finding the issue in the dependent file
- run: php ../e2eTestRunnerWithCache.php --diff expected-output-2.diff
working-directory: ${{ matrix.directory }}

# we undo the changes in the dependency
- run: patch -u src/DependencyTestClass.php -i patches/DependencyTestClass.php.patch
- run: patch -R -u src/DependencyTestClass.php -i patches/DependencyTestClass.php.patch
working-directory: ${{ matrix.directory }}

# it should now find the issue in the dependency again and not show the issue in the dependent file
Expand Down
10 changes: 0 additions & 10 deletions e2e/process-dependent-files/src/DependencyTestClass.php.orig

This file was deleted.

0 comments on commit 779ea70

Please sign in to comment.