@@ -97,43 +97,10 @@ jobs:
9797 - name : " Install dependencies"
9898 run : " composer install --no-interaction --no-progress"
9999
100- - name : " Install PHP for code transform"
101- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
102- uses : " shivammathur/setup-php@v2"
103- with :
104- coverage : " none"
105- php-version : 8.1
106- extensions : mbstring, intl
107-
108- - name : " Rector downgrade cache key"
109- id : rector-cache-key-base
110- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
111- run : echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
112-
113- - name : " Rector downgrade cache"
114- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
115- uses : actions/cache@v3
116- with :
117- path : ./tmp/rectorCache.php
118- key : " rector-v4-reflection-golden-${{ matrix.script }}-${{ matrix.operating-system }}-${{ hashFiles('composer.lock', 'build/rector-downgrade.php') }}-${{ matrix.php-version }}-${{ steps.rector-cache-key-base.outputs.sha }}"
119- restore-keys : |
120- rector-v4-reflection-golden-${{ matrix.script }}-${{ matrix.operating-system }}-${{ hashFiles('composer.lock', 'build/rector-downgrade.php') }}-${{ matrix.php-version }}-
121-
122100 - name : " Transform source code"
123101 if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
124102 shell : bash
125- run : " build/transform-source ${{ matrix.php-version }}"
126-
127- - name : " Reinstall matrix PHP version"
128- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
129- uses : " shivammathur/setup-php@v2"
130- with :
131- coverage : " none"
132- php-version : " ${{ matrix.php-version }}"
133- tools : pecl
134- extensions : ds,mbstring
135- ini-file : development
136- ini-values : memory_limit=2G
103+ run : " vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"
137104
138105 - name : " Dump previous reflection data"
139106 run : " php tests/generate-reflection-test.php"
@@ -149,43 +116,10 @@ jobs:
149116 - name : " Install dependencies"
150117 run : " composer install --no-interaction --no-progress"
151118
152- - name : " Install PHP for code transform"
153- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
154- uses : " shivammathur/setup-php@v2"
155- with :
156- coverage : " none"
157- php-version : 8.1
158- extensions : mbstring, intl
159-
160- - name : " Rector downgrade cache key"
161- id : rector-cache-key-head
162- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
163- run : echo "sha=$(php build/rector-cache-files-hash.php)" >> $GITHUB_OUTPUT
164-
165- - name : " Rector downgrade cache"
166- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
167- uses : actions/cache@v3
168- with :
169- path : ./tmp/rectorCache.php
170- key : " rector-v4-reflection-golden-${{ matrix.script }}-${{ matrix.operating-system }}-${{ hashFiles('composer.lock', 'build/rector-downgrade.php') }}-${{ matrix.php-version }}-${{ steps.rector-cache-key-head.outputs.sha }}"
171- restore-keys : |
172- rector-v4-reflection-golden-${{ matrix.script }}-${{ matrix.operating-system }}-${{ hashFiles('composer.lock', 'build/rector-downgrade.php') }}-${{ matrix.php-version }}-
173-
174119 - name : " Transform source code"
175120 if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
176121 shell : bash
177- run : " build/transform-source ${{ matrix.php-version }}"
178-
179- - name : " Reinstall matrix PHP version"
180- if : matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
181- uses : " shivammathur/setup-php@v2"
182- with :
183- coverage : " none"
184- php-version : " ${{ matrix.php-version }}"
185- tools : pecl
186- extensions : ds,mbstring
187- ini-file : development
188- ini-values : memory_limit=2G
122+ run : " vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"
189123
190124 - name : " Reflection golden test"
191125 run : " make tests-golden-reflection || true"
0 commit comments