Skip to content

Commit 186253d

Browse files
committed
Merge branch 'main' into fix/more-tags
2 parents 6cd99fc + 721867f commit 186253d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+687
-1310
lines changed

.github/actions/restore-all/action.yml

Lines changed: 0 additions & 242 deletions
This file was deleted.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Restore artifacts
2+
3+
description: |
4+
When no input is given, artifacts are restored in the current directory, under their artifact `name`.
5+
6+
This composite restore all of our artifacts, at their right path.
7+
8+
inputs:
9+
type:
10+
description: Type of artifacts to restore (`all` | `specs` | `utils`)
11+
required: false
12+
13+
runs:
14+
using: composite
15+
steps:
16+
# Bundled specs
17+
- name: specs
18+
if: ${{ inputs.type == 'all' || inputs.type == 'specs' }}
19+
uses: actions/download-artifact@v3
20+
with:
21+
name: specs
22+
path: specs/bundled/
23+
24+
# JavaScript utils
25+
- name: client-javascript-utils-client-common
26+
if: ${{ inputs.type == 'all' || inputs.type == 'utils' }}
27+
uses: actions/download-artifact@v3
28+
with:
29+
name: client-javascript-utils-client-common
30+
path: clients/algoliasearch-client-javascript/packages/client-common/
31+
32+
- name: client-javascript-utils-requester-browser-xhr
33+
if: ${{ inputs.type == 'all' || inputs.type == 'utils' }}
34+
uses: actions/download-artifact@v3
35+
with:
36+
name: client-javascript-utils-requester-browser-xhr
37+
path: clients/algoliasearch-client-javascript/packages/requester-browser-xhr/
38+
39+
- name: client-javascript-utils-requester-node-http
40+
if: ${{ inputs.type == 'all' || inputs.type == 'utils' }}
41+
uses: actions/download-artifact@v3
42+
with:
43+
name: client-javascript-utils-requester-node-http
44+
path: clients/algoliasearch-client-javascript/packages/requester-node-http/
45+
46+
# JavaScript
47+
- name: Download clients-javascript artifact
48+
if: ${{ inputs.type == 'all' }}
49+
uses: actions/download-artifact@v3
50+
with:
51+
name: clients-javascript
52+
53+
- name: Unzip clients-javascript artifact
54+
if: ${{ inputs.type == 'all' }}
55+
shell: bash
56+
run: unzip -q -o clients-javascript.zip
57+
58+
# PHP
59+
- name: Download clients-php artifact
60+
if: ${{ inputs.type == 'all' }}
61+
uses: actions/download-artifact@v3
62+
with:
63+
name: clients-php
64+
65+
- name: Unzip clients-php artifact
66+
if: ${{ inputs.type == 'all' }}
67+
shell: bash
68+
run: unzip -q -o clients-php.zip
69+
70+
# Java
71+
- name: Download clients-java artifact
72+
if: ${{ inputs.type == 'all' }}
73+
uses: actions/download-artifact@v3
74+
with:
75+
name: clients-java
76+
77+
- name: Unzip clients-java artifact
78+
if: ${{ inputs.type == 'all' }}
79+
shell: bash
80+
run: unzip -q -o clients-java.zip

.github/actions/setup/action.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -111,26 +111,12 @@ outputs:
111111
description: The generated `specs` matrix
112112
value: ${{ steps.spec-matrix.outputs.MATRIX }}
113113

114-
RUN_JAVASCRIPT:
115-
description: Determine if the `client_javascript` job should run
116-
value: ${{ steps.gen-matrix.outputs.RUN_JAVASCRIPT }}
117-
JAVASCRIPT_MATRIX:
118-
description: The generated `client_javascript` matrix
119-
value: ${{ steps.gen-matrix.outputs.JAVASCRIPT_MATRIX }}
120-
121-
RUN_JAVA:
122-
description: Determine if the `client_java` job should run
123-
value: ${{ steps.gen-matrix.outputs.RUN_JAVA }}
124-
JAVA_MATRIX:
125-
description: The generated `client_java` matrix
126-
value: ${{ steps.gen-matrix.outputs.JAVA_MATRIX }}
127-
128-
RUN_PHP:
129-
description: Determine if the `client_php` job should run
130-
value: ${{ steps.gen-matrix.outputs.RUN_PHP }}
131-
PHP_MATRIX:
132-
description: The generated `client_php` matrix
133-
value: ${{ steps.gen-matrix.outputs.PHP_MATRIX }}
114+
RUN_GEN:
115+
description: Determine if the `client_gen` job should run
116+
value: ${{ steps.gen-matrix.outputs.RUN_GEN }}
117+
GEN_MATRIX:
118+
description: The generated `client_gen` matrix
119+
value: ${{ steps.gen-matrix.outputs.GEN_MATRIX }}
134120

135121
RUN_JS_ALGOLIASEARCH:
136122
description: Determine if the `client-javascript-algoliasearch` job should run
@@ -143,7 +129,7 @@ outputs:
143129
value: ${{ steps.diff.outputs.JS_COMMON_TESTS_CHANGED > 0 }}
144130

145131
RUN_CTS:
146-
description: Determine if the `cts` job should run
132+
description: Determine if the `cts` jobs should run
147133
value: ${{
148134
steps.diff.outputs.GITHUB_ACTIONS_CHANGED > 0 ||
149135
steps.diff.outputs.SCRIPTS_CHANGED > 0 ||
@@ -158,6 +144,4 @@ outputs:
158144
description: Determine if the `codegen` job should run
159145
value: ${{
160146
steps.spec-matrix.outputs.RUN_SPECS == 'true' ||
161-
steps.gen-matrix.outputs.RUN_JAVASCRIPT == 'true' ||
162-
steps.gen-matrix.outputs.RUN_JAVA == 'true' ||
163-
steps.gen-matrix.outputs.RUN_PHP == 'true' }}
147+
steps.gen-matrix.outputs.RUN_GEN == 'true' }}

0 commit comments

Comments
 (0)