@@ -22,10 +22,11 @@ jobs:
2222 fail-fast : false
2323 matrix :
2424 php_version : ['8.1']
25+ rector_disable_parallel : ['true', 'false']
2526 directory :
2627 - ' e2e/consecutive-changes-with-cache'
2728
28- name : End to end test - ${{ matrix.directory }}
29+ name : End to end test - ${{ matrix.directory }} [disableParallel=${{ matrix.rector_disable_parallel }}]
2930
3031 steps :
3132 - uses : actions/checkout@v3
@@ -43,10 +44,28 @@ jobs:
4344 run : composer install --ansi
4445 working-directory : ${{ matrix.directory }}
4546
47+ # run e2e test with dry run, we expect non-zero exit code
48+ - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-1-dry-run.diff --dry-run
49+ working-directory : ${{ matrix.directory }}
50+ continue-on-error : true
51+ env :
52+ RECTOR_DISABLE_PARALLEL : ${{ matrix.rector_disable_parallel }}
53+
54+ # run e2e test with dry run once more, we expect non-zero exit code again
55+ - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-2-dry-run.diff --dry-run
56+ working-directory : ${{ matrix.directory }}
57+ continue-on-error : true
58+ env :
59+ RECTOR_DISABLE_PARALLEL : ${{ matrix.rector_disable_parallel }}
60+
4661 # run e2e test
47- - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-1 .diff
62+ - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-3 .diff
4863 working-directory : ${{ matrix.directory }}
64+ env :
65+ RECTOR_DISABLE_PARALLEL : ${{ matrix.rector_disable_parallel }}
4966
5067 # this tests that a 2nd run with cache and consecutive changes works, see https://github.com/rectorphp/rector-src/pull/3614#issuecomment-1507742338
51- - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-2 .diff
68+ - run : php ../e2eTestChangingRunnerWithCache.php -o expected-output-4 .diff
5269 working-directory : ${{ matrix.directory }}
70+ env :
71+ RECTOR_DISABLE_PARALLEL : ${{ matrix.rector_disable_parallel }}
0 commit comments