78
78
steps :
79
79
- uses : actions/checkout@v2
80
80
81
- - name : Setup
82
- uses : ./.github/actions/setup
83
- with :
84
- type : minimal
85
-
86
- - name : Check script linting
87
- run : yarn scripts:lint
88
-
89
- - name : Test scripts
90
- run : yarn scripts:test
91
-
92
- - name : Test custom eslint plugin
93
- run : yarn workspace eslint-plugin-automation-custom test
94
-
95
81
specs :
96
82
runs-on : ubuntu-20.04
97
83
timeout-minutes : 10
@@ -101,30 +87,6 @@ jobs:
101
87
steps :
102
88
- uses : actions/checkout@v2
103
89
104
- - name : Cache bundled specs
105
- id : cache
106
- uses : actions/cache@v3
107
- with :
108
- key : ${{ matrix.client.cacheKey }}
109
- path : ${{ matrix.client.bundledPath }}
110
-
111
- - name : Setup
112
- if : ${{ steps.cache.outputs.cache-hit != 'true' }}
113
- uses : ./.github/actions/setup
114
- with :
115
- type : minimal
116
-
117
- - name : Building specs
118
- if : ${{ steps.cache.outputs.cache-hit != 'true' }}
119
- run : yarn cli build specs ${{ matrix.client.toRun }}
120
-
121
- - name : Store bundled specs
122
- uses : actions/upload-artifact@v3
123
- with :
124
- if-no-files-found : error
125
- name : specs
126
- path : ${{ matrix.client.bundledPath }}
127
-
128
90
client_javascript_utils :
129
91
timeout-minutes : 10
130
92
runs-on : ubuntu-20.04
@@ -139,38 +101,6 @@ jobs:
139
101
steps :
140
102
- uses : actions/checkout@v2
141
103
142
- - name : Cache '${{ matrix.client }}' client folder
143
- id : cache
144
- uses : actions/cache@v3
145
- with :
146
- key : |
147
- ${{ matrix.client }}-${{ hashFiles(
148
- format('clients/algoliasearch-client-javascript/packages/{0}/**', matrix.client),
149
- 'yarn.lock'
150
- )}}
151
- path : clients/algoliasearch-client-javascript/packages/${{ matrix.client }}
152
-
153
- - name : Setup
154
- if : ${{ steps.cache.outputs.cache-hit != 'true' }}
155
- uses : ./.github/actions/setup
156
- with :
157
- type : minimal
158
-
159
- - name : Build '${{ matrix.client }}' client
160
- if : ${{ steps.cache.outputs.cache-hit != 'true' }}
161
- run : yarn workspace algoliasearch-client-javascript build ${{ matrix.client }}
162
-
163
- - name : Run tests for 'client-common'
164
- if : ${{ steps.cache.outputs.cache-hit != 'true' && matrix.client == 'client-common' }}
165
- run : yarn workspace @experimental-api-clients-automation/client-common test
166
-
167
- - name : Store '${{ matrix.client }}' JavaScript utils package
168
- uses : actions/upload-artifact@v3
169
- with :
170
- if-no-files-found : error
171
- name : client-javascript-utils-${{ matrix.client }}
172
- path : clients/algoliasearch-client-javascript/packages/${{ matrix.client }}
173
-
174
104
client_gen :
175
105
timeout-minutes : 15
176
106
runs-on : ubuntu-20.04
@@ -196,19 +126,6 @@ jobs:
196
126
key : ${{ matrix.client.cacheKey }}
197
127
path : ${{ matrix.client.path }}
198
128
199
- - name : Download specs artifacts
200
- if : ${{ steps.cache.outputs.cache-hit != 'true' }}
201
- uses : ./.github/actions/restore-artifacts
202
- with :
203
- type : specs
204
-
205
- # Always download the utils for js, in case they changed we want to include them in the zip
206
- - name : Download JavaScript utils artifacts
207
- if : ${{ matrix.client.language == 'javascript' }}
208
- uses : ./.github/actions/restore-artifacts
209
- with :
210
- type : js_utils
211
-
212
129
- name : Zip artifact before storing
213
130
run :
214
131
zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x \
0 commit comments