@@ -23,18 +23,21 @@ jobs:
2323 outputs :
2424 matrix : ${{ steps.collect_build_matrix.outputs.matrix }}
2525 steps :
26- # Workaround for issue with actions/checkout@v2 wrong PR commit checkout: See https://github.com/actions/checkout/issues/299#issuecomment-677674415
26+ # Workaround for issue with actions/checkout "wrong PR commit checkout":
27+ # See:
28+ # ** https://github.com/actions/checkout/issues/299#issuecomment-677674415
29+ # ** https://github.com/actions/checkout/issues/1359#issuecomment-1631503791
2730 -
2831 name : Checkout current state of Pull Request
2932 if : github.event_name == 'pull_request'
30- uses : actions/checkout@v2
33+ uses : actions/checkout@v3
3134 with :
3235 ref : ${{ github.event.pull_request.head.sha }}
3336 -
3437 name : Checkout current state of Branch
3538 if : github.event_name == 'push'
36- uses : actions/checkout@v2
37- # End: Workaround for issue with actions/checkout@v2 wrong PR commit checkout
39+ uses : actions/checkout@v3
40+ # End: Workaround for issue with actions/checkout...
3841 -
3942 name : " Resolve target branch of pull request."
4043 if : github.event_name == 'pull_request'
@@ -69,10 +72,10 @@ jobs:
6972 echo "matrix=$(echo $matrix)" >> $GITHUB_OUTPUT
7073 -
7174 name : Set up Docker Buildx
72- uses : docker/setup-buildx-action@v1
75+ uses : docker/setup-buildx-action@v2
7376 -
7477 name : Build Docker image
75- uses : docker/build-push-action@v2
78+ uses : docker/build-push-action@v4
7679 with :
7780 context : .
7881 file : ./Docker/SolrServer/Dockerfile
8891 ./Build/Test/cibuild_docker.sh
8992 -
9093 name : Upload artifact
91- uses : actions/upload-artifact@v2
94+ uses : actions/upload-artifact@v3
9295 with :
9396 name : solrci-image
9497 path : /tmp/solrci-image.tar
@@ -104,40 +107,39 @@ jobs:
104107 TYPO3_DATABASE_HOST : ' 127.0.0.1'
105108 TYPO3_DATABASE_USERNAME : ' root'
106109 TYPO3_DATABASE_PASSWORD : ' root'
107- PHP_CS_FIXER_VERSION : ' ^3.2.1'
108110 TYPO3_VERSION : ${{ matrix.TYPO3 }}
109111
110112 name : TYPO3 ${{ matrix.TYPO3 }} on PHP ${{ matrix.PHP }}
111113 steps :
112- # Workaround for issue with actions/checkout@v2 wrong PR commit checkout: See https://github.com/actions/checkout/issues/299#issuecomment-677674415
114+ # Workaround for issue with actions/checkout " wrong PR commit checkout". See: ci_bootstrapping job
113115 -
114116 name : Checkout current state of Pull Request
115117 if : github.event_name == 'pull_request'
116- uses : actions/checkout@v2
118+ uses : actions/checkout@v3
117119 with :
118120 fetch-depth : 2
119121 ref : ${{ github.event.pull_request.head.sha }}
120122 -
121123 name : Checkout current state of Branch
122124 if : github.event_name == 'push'
123- uses : actions/checkout@v2
125+ uses : actions/checkout@v3
124126 with :
125127 fetch-depth : 2
126- # End: Workaround for issue with actions/checkout@v2 wrong PR commit checkout
128+ # End: Workaround for issue with actions/checkout...
127129 -
128130 name : Mount RAMFS
129131 run : |
130132 mkdir -p ${{ env.CI_BUILD_DIRECTORY }}
131- sudo mount -t tmpfs -o size=3G none ${{ env.CI_BUILD_DIRECTORY }}
133+ sudo mount -t tmpfs -o size=1G none ${{ env.CI_BUILD_DIRECTORY }}
132134 sudo mkdir -p ${{ env.CI_BUILD_DIRECTORY }}/data-{solr,mysql} \
133135 && sudo chown $USER ${{ env.CI_BUILD_DIRECTORY }}/data-mysql \
134136 && sudo chown 8983:8983 ${{ env.CI_BUILD_DIRECTORY }}/data-solr
135137 -
136138 name : Set up Docker Buildx
137- uses : docker/setup-buildx-action@v1
139+ uses : docker/setup-buildx-action@v2
138140 -
139141 name : Download solrci-image from "ci_bootstrapping" job
140- uses : actions/download-artifact@v2
142+ uses : actions/download-artifact@v3
141143 with :
142144 name : solrci-image
143145 path : /tmp
@@ -160,36 +162,9 @@ jobs:
160162 with :
161163 php-version : ${{ matrix.PHP }}
162164 coverage : pcov
163- tools : composer:2.1.14
164- -
165- name : Resolve CI build cache key
166- # CI_CACHE_VERSION is used and can be increased to be able to invalidate caches.
167- # For example if some composer dependencies added or removed in composer.json or
168- # in Build/Test/bootstrap.sh
169- run : |
170- export CURRENT_TYPO3_VERSION_REFERNCE=$(./Build/Helpers/TYPO3_SOURCE_REFERENCE.sh "$TYPO3_VERSION" --short)
171- export CURRENT_SOLARIUM_VERSION=$(cat composer.json | jq --raw-output '.require."solarium/solarium"')
172- export CI_CACHE_VERSION="2023.01.20@00:00"
173- export CI_BUILD_CACHE_KEY=${{ runner.os }}-PHP:${{ matrix.PHP }}-TYPO3:$TYPO3_VERSION@$CURRENT_TYPO3_VERSION_REFERNCE-SOLARIUM:$CURRENT_SOLARIUM_VERSION-"CI_CACHE_VERSION:"$CI_CACHE_VERSION
174- echo "COMPOSER_GLOBAL_REQUEREMENTS=$(composer config home)" >> $GITHUB_ENV
175- echo "CI_BUILD_CACHE_KEY=$CI_BUILD_CACHE_KEY" >> $GITHUB_ENV
176- echo "The key for actions/cache@v2 is \"$CI_BUILD_CACHE_KEY\""
177- -
178- name : Restore ci build caches
179- id : restore_ci_build_caches
180- uses : actions/cache@v2
181- with :
182- path : |
183- ${{ env.CI_BUILD_DIRECTORY }}/Web
184- ${{ env.CI_BUILD_DIRECTORY }}/bin
185- ${{ env.CI_BUILD_DIRECTORY }}/vendor
186- ${{ env.COMPOSER_GLOBAL_REQUEREMENTS }}
187- composer.json
188- composer.lock
189- key : ${{ env.CI_BUILD_CACHE_KEY }}
165+ tools : composer:2.5.5
190166 -
191167 name : CI-Bootstrap
192- if : steps.restore_ci_build_caches.outputs.cache-hit != 'true'
193168 run : |
194169 ./Build/Test/bootstrap.sh --skip-solr-install
195170 echo "Current Size of EXT:Solr build Artefacts before run: " \
@@ -204,8 +179,8 @@ jobs:
204179 -
205180 name : Upload code coverage to Scrutinizer
206181 run : |
207- .Build/bin/ ocular code-coverage:upload --format=php-clover coverage.unit.clover
208- .Build/bin/ ocular code-coverage:upload --format=php-clover coverage.integration.clover
182+ ocular code-coverage:upload --format=php-clover coverage.unit.clover
183+ ocular code-coverage:upload --format=php-clover coverage.integration.clover
209184 -
210185 name : Clean up
211186 run : |
@@ -225,7 +200,7 @@ jobs:
225200 steps :
226201 -
227202 name : Checkout repository
228- uses : actions/checkout@v2
203+ uses : actions/checkout@v3
229204 with :
230205 ref : ${{ github.event.pull_request.head.sha }}
231206 -
0 commit comments