File tree 3 files changed +3
-17
lines changed
3 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ jobs:
236
236
237
237
- name : Build clients
238
238
if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language != 'php' }}
239
- run : yarn cli build clients ${{ matrix.client.language }} ${{ matrix.client.toBuild }}
239
+ run : yarn cli build clients ${{ matrix.client.language }} ${{ matrix.client.toRun }}
240
240
241
241
- name : Test JavaScript bundle size
242
242
if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' }}
@@ -246,7 +246,7 @@ jobs:
246
246
if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client.language == 'javascript' }}
247
247
run : cd ${{ matrix.client.path }} && yarn workspace algoliasearch test
248
248
249
- - name : Clean CTS output before generate
249
+ - name : Remove CTS output before generate
250
250
run : rm -rf ${{ matrix.client.testsToDelete }} || true
251
251
252
252
- name : Generate CTS
@@ -278,7 +278,7 @@ jobs:
278
278
run : yarn cli cts run ${{ matrix.client.language }}
279
279
280
280
- name : Zip artifact before storing
281
- run : zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x "**/node_modules**" "**/.yarn/cache/**" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/vendor/**"
281
+ run : zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsRootFolder }} -x "**/node_modules**" "**/.yarn/cache/**" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/vendor/**"
282
282
283
283
- name : Store ${{ matrix.client.language }} clients
284
284
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -98,15 +98,6 @@ async function getClientMatrix(baseBranch: string): Promise<void> {
98
98
return `${ testsOutputBase } /client/${ clientName } ${ extension } ${ testsOutputBase } /methods/requests/${ clientName } ${ extension } ${ tmpPath } ` ;
99
99
} )
100
100
. join ( ' ' ) ;
101
- let testsToStore = testsToDelete ;
102
-
103
- switch ( language ) {
104
- case 'java' :
105
- testsToStore = `${ testsToDelete } ${ testsRootFolder } /build.gradle` ;
106
- break ;
107
- default :
108
- break ;
109
- }
110
101
111
102
clientMatrix . client . push ( {
112
103
language,
@@ -120,7 +111,6 @@ async function getClientMatrix(baseBranch: string): Promise<void> {
120
111
] ) ,
121
112
testsRootFolder,
122
113
testsToDelete,
123
- testsToStore,
124
114
} ) ;
125
115
console . log ( `::set-output name=RUN_GEN_${ language . toUpperCase ( ) } ::true` ) ;
126
116
}
Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ export type ClientMatrix = BaseMatrix & {
37
37
* The test output path to delete before running the CTS generation.
38
38
*/
39
39
testsToDelete : string ;
40
- /**
41
- * The test output path to store in the artifact.
42
- */
43
- testsToStore : string ;
44
40
} ;
45
41
46
42
export type SpecMatrix = Pick < BaseMatrix , 'cacheKey' | 'toRun' > & {
You can’t perform that action at this time.
0 commit comments