File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,6 @@ outputs:
134
134
RUN_JS_UTILS :
135
135
description : Whether to build JS client common folders when RUN_JS is false
136
136
value : ${{ steps.js-utils.outputs.RUN_JS_UTILS }}
137
- RUN_JS_TESTS :
138
- description : Determine if the `client_javascript_tests` job should run
139
- value : ${{ steps.diff.outputs.JS_COMMON_TESTS_CHANGED > 0 }}
140
137
141
138
RUN_CODEGEN :
142
139
description : Determine if the `codegen` job should run
Original file line number Diff line number Diff line change 67
67
RUN_GEN_PHP : ${{ steps.setup.outputs.RUN_GEN_PHP }}
68
68
69
69
RUN_JS_UTILS : ${{ steps.setup.outputs.RUN_JS_UTILS }}
70
- RUN_JS_TESTS : ${{ steps.setup.outputs.RUN_JS_TESTS }}
71
70
72
71
RUN_CODEGEN : ${{ steps.setup.outputs.RUN_CODEGEN }}
73
72
@@ -162,10 +161,7 @@ jobs:
162
161
run : yarn workspace algoliasearch-client-javascript build ${{ matrix.client }}
163
162
164
163
- name : Run tests for 'client-common'
165
- if : ${{
166
- steps.cache.outputs.cache-hit != 'true' &&
167
- needs.setup.outputs.RUN_JS_TESTS == 'true' &&
168
- matrix.client == 'client-common' }}
164
+ if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client == 'client-common' }}
169
165
run : yarn workspace @experimental-api-clients-automation/client-common test
170
166
171
167
- name : Store '${{ matrix.client }}' JavaScript utils package
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ export const COMMON_DEPENDENCIES = {
45
45
*/
46
46
export const DEPENDENCIES = {
47
47
...COMMON_DEPENDENCIES ,
48
- JS_COMMON_TESTS_CHANGED : [
49
- `${ JS_CLIENT_FOLDER } /packages/client-common/src/__tests__` ,
50
- ] ,
51
48
JAVASCRIPT_UTILS_CHANGED : CLIENTS_JS_UTILS . map (
52
49
( clientName ) => `${ JS_CLIENT_FOLDER } /packages/${ clientName } `
53
50
) ,
Original file line number Diff line number Diff line change @@ -24,12 +24,16 @@ const commonCacheKey = (async function (): Promise<string> {
24
24
folders : { include : [ 'config' ] } ,
25
25
files : { include : [ 'openapitools.json' , 'clients.config.json' ] } ,
26
26
} ) ;
27
+ const depsHash = await hashElement ( toAbsolutePath ( '.' ) , {
28
+ encoding : 'hex' ,
29
+ files : { include : [ 'yarn.lock' ] } ,
30
+ } ) ;
27
31
28
- return `${ ghHash . hash } -${ scriptsHash . hash } -${ configHash . hash } ` ;
32
+ return `${ ghHash . hash } -${ scriptsHash . hash } -${ configHash . hash } - ${ depsHash } ` ;
29
33
} ) ( ) ;
30
34
31
35
/**
32
- * Compute a cache key based on the changes in the `paths` array of dependenciy .
36
+ * Compute a cache key based on the changes in the `paths` array of dependency .
33
37
*
34
38
* The `paths` parameter is an array of string, that needs to be treated as dependencies.
35
39
*/
You can’t perform that action at this time.
0 commit comments