File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 60
60
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
61
61
fi
62
62
63
+ - name : Rector Cache
64
+ uses : actions/cache@v4
65
+ with :
66
+ path : /tmp/rector
67
+ key : ${{ runner.os }}-rector-${{ github.run_id }}
68
+ restore-keys : ${{ runner.os }}-rector-
69
+
70
+ - run : mkdir -p /tmp/rector
71
+
63
72
- name : Analyze for refactoring
64
73
run : vendor/bin/rector process --dry-run --no-progress-bar
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
+ use Rector \Caching \ValueObject \Storage \FileCacheStorage ;
5
6
use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
6
7
use Rector \CodeQuality \Rector \Class_ \CompleteDynamicPropertiesRector ;
7
8
use Rector \CodeQuality \Rector \Empty_ \SimplifyEmptyCheckOnEmptyArrayRector ;
50
51
51
52
$ rectorConfig ->parallel ();
52
53
54
+ // Github action cache
55
+ $ rectorConfig ->cacheClass (FileCacheStorage::class);
56
+ if (is_dir ('/tmp ' )) {
57
+ $ rectorConfig ->cacheDirectory ('/tmp/rector ' );
58
+ }
59
+
53
60
// The paths to refactor (can also be supplied with CLI arguments)
54
61
$ rectorConfig ->paths ([
55
62
__DIR__ . '/src/ ' ,
Original file line number Diff line number Diff line change 60
60
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
61
61
fi
62
62
63
+ - name : Rector Cache
64
+ uses : actions/cache@v4
65
+ with :
66
+ path : /tmp/rector
67
+ key : ${{ runner.os }}-rector-${{ github.run_id }}
68
+ restore-keys : ${{ runner.os }}-rector-
69
+
70
+ - run : mkdir -p /tmp/rector
71
+
63
72
- name : Analyze for refactoring
64
73
run : vendor/bin/rector process --dry-run --no-progress-bar
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
+ use Rector \Caching \ValueObject \Storage \FileCacheStorage ;
5
6
use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
6
7
use Rector \CodeQuality \Rector \Class_ \CompleteDynamicPropertiesRector ;
7
8
use Rector \CodeQuality \Rector \Empty_ \SimplifyEmptyCheckOnEmptyArrayRector ;
50
51
51
52
$ rectorConfig ->parallel ();
52
53
54
+ // Github action cache
55
+ $ rectorConfig ->cacheClass (FileCacheStorage::class);
56
+ if (is_dir ('/tmp ' )) {
57
+ $ rectorConfig ->cacheDirectory ('/tmp/rector ' );
58
+ }
59
+
53
60
// The paths to refactor (can also be supplied with CLI arguments)
54
61
$ rectorConfig ->paths ([
55
62
__DIR__ . '/app/ ' ,
You can’t perform that action at this time.
0 commit comments