File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ jobs:
219219 run : cd clients/algoliasearch-client-javascript && YARN_ENABLE_HARDENED_MODE=0 YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
220220
221221 - name : Build clients
222- run : ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).buildCommand }}
222+ run : cd clients/algoliasearch-client-javascript && yarn build
223223
224224 - name : Build the playground
225225 run : yarn cli build playground javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
@@ -334,6 +334,8 @@ jobs:
334334 - name : Generate clients
335335 run : yarn cli generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
336336
337+ # no need to build the clients here, it will be done in the test Run CTS step anyway.
338+
337339 - name : Update composer.lock
338340 if : ${{ matrix.client.language == 'php' && startsWith(github.head_ref, 'chore/renovateBaseBranch') && matrix.client.isMainVersion }}
339341 run : cd ${{ matrix.client.path }} && composer update
@@ -346,9 +348,6 @@ jobs:
346348 find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d
347349 [ $(find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d | wc -l) -gt 0 ] && echo "Duplicates found" && exit 1 || echo "No duplicate found"
348350
349- - name : Build clients
350- run : ${{ matrix.client.buildCommand }}
351-
352351 - name : Build the playground
353352 run : yarn cli build playground ${{ matrix.client.language }}
354353
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ async function createClientMatrix(baseBranch: string): Promise<void> {
8383 language,
8484 path : matrix [ language ] . path ,
8585 toRun,
86- buildCommand : `yarn cli build clients ${ language } ${ toRun } ` ,
8786 testsRootFolder,
8887 // We delete tests to ensure the CI only run tests against what changed.
8988 testsToDelete : `${ testsOutputBase } /client ${ testsOutputBase } /requests ${ testsOutputBase } /e2e ${ testsOutputBase } /benchmark` ,
@@ -112,7 +111,6 @@ async function createClientMatrix(baseBranch: string): Promise<void> {
112111 languageMatrix . testsToStore = `${ languageMatrix . testsToStore } ${ testsRootFolder } /build.gradle` ;
113112 break ;
114113 case 'javascript' :
115- languageMatrix . buildCommand = `cd ${ matrix [ language ] . path } && yarn build` ;
116114 languageMatrix . testsToStore = `${ languageMatrix . testsToStore } ${ testsRootFolder } /package.json` ;
117115
118116 setOutput ( 'JAVASCRIPT_DATA' , JSON . stringify ( languageMatrix ) ) ;
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ export type ClientMatrix = {
2323 * The client language.
2424 */
2525 language : string ;
26- /**
27- * The command to build the clients.
28- */
29- buildCommand : string ;
3026 /**
3127 * The root of the test folder.
3228 */
You can’t perform that action at this time.
0 commit comments