Skip to content

Commit b683e34

Browse files
authored
Merge branch 'main' into fix/dio-requester-requestUri
2 parents f065590 + 63200d1 commit b683e34

File tree

2,177 files changed

+77271
-110740
lines changed

Some content is hidden

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

2,177 files changed

+77271
-110740
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# See ./website/docs/releaseProcess.md for more information.
1+
# See ./website/docs/release-process.md for more information.
22

3-
GITHUB_TOKEN=
3+
GITHUB_TOKEN=

.eslintrc.cjs

Lines changed: 15 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'],
@@ -194,6 +202,13 @@ module.exports = {
194202
'@typescript-eslint/prefer-optional-chain': 0,
195203
}
196204
},
205+
{
206+
files: ['clients/algoliasearch-client-javascript/packages/**/__tests__/**/*.ts'],
207+
208+
extends: ["plugin:vitest/legacy-recommended"],
209+
210+
plugins: ['@vitest/eslint-plugin'],
211+
},
197212
{
198213
files: ['*.json'],
199214
parserOptions: {

.github/ISSUE_TEMPLATE/Bug_report.yml

Lines changed: 1 addition & 2 deletions
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
@@ -55,7 +55,6 @@ body:
5555
- Query-Suggestions
5656
- Recommend
5757
- Search
58-
- Usage
5958
- Crawler
6059
validations:
6160
required: true

.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: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
setup:
4141
runs-on: ubuntu-22.04
4242
timeout-minutes: 10
43+
env:
44+
CACHE_VERSION: 1 # bump this to run all clients on the CI.
4345
steps:
4446
- name: debugging - dump GitHub context
4547
env:
@@ -82,6 +84,7 @@ jobs:
8284
8385
if [[ $diff > 0 ]]; then
8486
echo "Build the custom github actions by running \`yarn workspace scripts build:actions\`"
87+
git status --porcelain ./scripts/ci/actions
8588
fi
8689
8790
exit $diff
@@ -201,7 +204,7 @@ jobs:
201204
cd clients/algoliasearch-client-javascript/packages
202205
ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf
203206
cd algoliasearch
204-
ls | grep -v -E "(__tests__|jest.config.ts)" | xargs rm -rf
207+
ls | grep -v -E "__tests__" | xargs rm -rf
205208
206209
- name: Setup
207210
uses: ./.github/actions/setup
@@ -286,7 +289,7 @@ jobs:
286289
path: clients-javascript.zip
287290

288291
client_gen:
289-
timeout-minutes: 10
292+
timeout-minutes: 15
290293
runs-on: ubuntu-22.04
291294
needs:
292295
- setup
@@ -397,7 +400,7 @@ jobs:
397400
path: clients-${{matrix.client.language }}.zip
398401

399402
kotlin_build_macos:
400-
timeout-minutes: 10
403+
timeout-minutes: 15
401404
runs-on: macos-latest
402405
needs:
403406
- setup
@@ -427,13 +430,14 @@ jobs:
427430
type: minimal
428431
language: kotlin
429432

430-
- name: remove previous build from linux
431-
run: |
432-
rm -rf clients/algoliasearch-client-kotlin/build || true
433-
rm -rf clients/algoliasearch-client-kotlin/.kotlin || true
434-
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
435437

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

438442
- name: Set output
439443
id: setoutput
@@ -475,7 +479,14 @@ jobs:
475479
language: swift
476480
version: ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
477481

478-
- 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' || '' }}
479490

480491
- name: Set output
481492
id: setoutput
@@ -619,7 +630,7 @@ jobs:
619630
620631
push_and_release:
621632
runs-on: ubuntu-22.04
622-
timeout-minutes: 15
633+
timeout-minutes: 30
623634
needs:
624635
- codegen
625636
- 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.

0 commit comments

Comments
 (0)