Skip to content

Commit 0770e79

Browse files
authored
Merge branch 'main' into docs/analytics/update_max_pagination_query_limit
2 parents a2a408e + 63200d1 commit 0770e79

File tree

1,889 files changed

+69269
-71664
lines changed

Some content is hidden

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

1,889 files changed

+69269
-71664
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ module.exports = {
7171
},
7272
],
7373
},
74+
{
75+
// actions yml linter
76+
files: ['.github/**/*.yml'],
77+
78+
rules: {
79+
'yml/no-empty-mapping-value': 0,
80+
},
81+
},
7482
{
7583
// es linter
7684
files: ['*.ts', '*.js'],

.github/ISSUE_TEMPLATE/Bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ body:
4343
id: client
4444
attributes:
4545
label: Client
46-
description: Which API are you targetting?
46+
description: Which API are you targeting?
4747
options:
4848
- All
4949
- AB testing

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
# Java for code generation
2020
- name: Install Java
2121
if: inputs.type != 'minimal'
22-
uses: actions/setup-java@v4.2.2
22+
uses: actions/setup-java@v4.4.0
2323
with:
2424
distribution: zulu
2525
java-version-file: config/.java-version
@@ -201,7 +201,7 @@ runs:
201201
if: ${{ inputs.language == 'swift' }}
202202
id: swiftformat-version
203203
shell: bash
204-
run: echo "SWIFTFORMAT_VERSION=0.54.4" >> $GITHUB_OUTPUT
204+
run: echo "SWIFTFORMAT_VERSION=0.54.5" >> $GITHUB_OUTPUT
205205

206206
- name: Checkout swiftformat
207207
if: ${{ inputs.language == 'swift' }}

.github/workflows/check.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
cd clients/algoliasearch-client-javascript/packages
205205
ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf
206206
cd algoliasearch
207-
ls | grep -v -E "(__tests__|jest.config.ts)" | xargs rm -rf
207+
ls | grep -v -E "__tests__" | xargs rm -rf
208208
209209
- name: Setup
210210
uses: ./.github/actions/setup
@@ -289,7 +289,7 @@ jobs:
289289
path: clients-javascript.zip
290290

291291
client_gen:
292-
timeout-minutes: 10
292+
timeout-minutes: 15
293293
runs-on: ubuntu-22.04
294294
needs:
295295
- setup
@@ -400,7 +400,7 @@ jobs:
400400
path: clients-${{matrix.client.language }}.zip
401401

402402
kotlin_build_macos:
403-
timeout-minutes: 10
403+
timeout-minutes: 15
404404
runs-on: macos-latest
405405
needs:
406406
- setup
@@ -430,13 +430,14 @@ jobs:
430430
type: minimal
431431
language: kotlin
432432

433-
- name: remove previous build from linux
434-
run: |
435-
rm -rf clients/algoliasearch-client-kotlin/build || true
436-
rm -rf clients/algoliasearch-client-kotlin/.kotlin || true
437-
rm -rf clients/algoliasearch-client-kotlin/.gradle || true
433+
- name: Build clients for macOS
434+
id: build
435+
continue-on-error: true
436+
run: yarn cli build clients kotlin
438437

439-
- run: yarn cli build clients kotlin
438+
- name: Retry build
439+
if: ${{ steps.build.outcome == 'failure' }}
440+
run: yarn cli build clients kotlin
440441

441442
- name: Set output
442443
id: setoutput
@@ -478,7 +479,14 @@ jobs:
478479
language: swift
479480
version: ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
480481

481-
- run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
482+
- name: Run tests on macOS
483+
id: run-test
484+
continue-on-error: true
485+
run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
486+
487+
- name: Retry tests
488+
if: ${{ steps.run-test.outcome == 'failure' }}
489+
run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
482490

483491
- name: Set output
484492
id: setoutput
@@ -622,7 +630,7 @@ jobs:
622630
623631
push_and_release:
624632
runs-on: ubuntu-22.04
625-
timeout-minutes: 15
633+
timeout-minutes: 30
626634
needs:
627635
- codegen
628636
- check_green
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Push specs and snippets to Algolia doc
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Scheduled Release
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
ref: main
14+
15+
- name: Setup
16+
id: setup
17+
uses: ./.github/actions/setup
18+
with:
19+
type: minimal
20+
21+
- run: yarn workspace scripts pushToAlgoliaDoc
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
24+
FORCE: true

.github/workflows/renovate.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '0 14 * * 5' # At 14:00 on Friday.
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
renovate:

.github/workflows/scheduled-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '30 6 * * 2'
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
release:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.7.0
1+
22.9.0

.yarn/releases/yarn-4.4.1.cjs renamed to .yarn/releases/yarn-4.5.0.cjs

Lines changed: 162 additions & 162 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.4.1.cjs
7+
yarnPath: .yarn/releases/yarn-4.5.0.cjs
8+
9+
# esbuild use native binaries, we need both to work locally and on the CI.
10+
supportedArchitectures:
11+
os:
12+
- darwin
13+
- linux

0 commit comments

Comments
 (0)