Skip to content

Commit 530df58

Browse files
authored
Merge branch 'main' into fix/specs/decompounding
2 parents 0601da8 + 3f622e5 commit 530df58

File tree

2,724 files changed

+136874
-70268
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,724 files changed

+136874
-70268
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
'automation-custom/out-of-line-all-of': 'error',
6565
'automation-custom/out-of-line-any-of': 'error',
6666
'automation-custom/valid-acl': 'error',
67+
'automation-custom/ref-common': 'error',
6768
},
6869
},
6970
],

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Bug_report.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Bug Report
2+
description: File a bug report.
3+
title: '[bug]: '
4+
labels: ['bug', 'triage']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
## Please help us help you!
10+
11+
Before filing your issue, ask yourself:
12+
- Is there an issue already opened for this bug?
13+
- Can I reproduce it?
14+
15+
If you are not sure about the origin of the issue, or if it impacts your customer experience, please contact [our support team](https://alg.li/support).
16+
- type: textarea
17+
attributes:
18+
label: Description
19+
description: A clear and concise description of what the bug is.
20+
validations:
21+
required: true
22+
- type: dropdown
23+
id: language
24+
attributes:
25+
label: Language
26+
description: In which API client are you able to reproduce the bug?
27+
options:
28+
- All
29+
- CSharp
30+
- Dart
31+
- Go
32+
- Java
33+
- JavaScript
34+
- Kotlin
35+
- PHP
36+
- Python
37+
- Ruby
38+
- Scala
39+
- Swift
40+
validations:
41+
required: true
42+
- type: dropdown
43+
id: client
44+
attributes:
45+
label: Client
46+
description: What API are you targetting?
47+
options:
48+
- All
49+
- AB testing
50+
- Analytics
51+
- Ingestion
52+
- Insights
53+
- Monitoring
54+
- Personalization
55+
- Query-Suggestions
56+
- Recommend
57+
- Search
58+
- Usage
59+
- Crawler
60+
validations:
61+
required: true
62+
- type: textarea
63+
attributes:
64+
label: Steps to reproduce
65+
description: Write down the steps to reproduce the bug, please include any information that seems relevant for us to reproduce it properly
66+
placeholder: |
67+
1. Use method `...`
68+
2. With parameters `...`
69+
3. See error
70+
validations:
71+
required: true
72+
- type: textarea
73+
id: logs
74+
attributes:
75+
label: Relevant log output
76+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
77+
render: shell
78+
- type: checkboxes
79+
attributes:
80+
label: Self-service
81+
description: |
82+
If you feel like you could contribute to this issue, please check the box below. This would tell us and other people looking for contributions that someone's working on it.
83+
If you do check this box, please send a pull request within 7 days so we can still delegate this to someone else.
84+
options:
85+
- label: I'd be willing to fix this bug myself.

.github/actions/setup/action.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ runs:
2121
distribution: zulu
2222
java-version-file: config/.java-version
2323

24-
- name: Validate gradle wrapper
25-
if: inputs.type != 'minimal'
26-
uses: gradle/actions/wrapper-validation@v3
27-
2824
- name: Setup gradle
2925
if: inputs.type != 'minimal'
3026
uses: gradle/actions/setup-gradle@v3
3127
with:
32-
cache-read-only: false
28+
validate-wrappers: true
29+
add-job-summary: 'on-failure'
3330

3431
- name: Download Java formatter
3532
if: inputs.type != 'minimal'
@@ -43,17 +40,6 @@ runs:
4340
node-version-file: .nvmrc
4441
cache: yarn
4542

46-
- name: Get yarn cache directory path
47-
shell: bash
48-
id: yarn-cache-dir
49-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
50-
51-
- name: Restore Yarn
52-
uses: actions/cache@v4
53-
with:
54-
path: ${{ steps.yarn-cache-dir.outputs.dir || '.yarn/cache' }}
55-
key: yarn-cache-monorepo-${{ hashFiles('yarn.lock') }}
56-
5743
- name: Install JavaScript dependencies
5844
shell: bash
5945
run: YARN_ENABLE_HARDENED_MODE=0 yarn install
@@ -184,6 +170,15 @@ runs:
184170
ruby-version: ${{ steps.versions.outputs.RUBY_VERSION }}
185171
bundler-cache: true
186172

173+
- name: Install Ruby formatter
174+
if: ${{ inputs.language == 'ruby' }}
175+
shell: bash
176+
run: |
177+
curl --retry 3 -L https://github.com/fables-tales/rubyfmt/releases/download/v0.10.0/rubyfmt-v0.10.0-Linux-x86_64.tar.gz > rubyfmt.tar.gz
178+
tar -xzf rubyfmt.tar.gz
179+
mv tmp/releases/v0.10.0-Linux/rubyfmt /usr/local/bin
180+
rm -rf rubyfmt.tar.gz tmp
181+
187182
# Csharp
188183
- name: Install dotnet
189184
if: ${{ inputs.language == 'csharp' }}
@@ -202,11 +197,21 @@ runs:
202197
with:
203198
swift-version: ${{ steps.versions.outputs.SWIFT_VERSION }}
204199

200+
- name: Cache the build folder
201+
id: cache-swift-build
202+
if: ${{ inputs.language == 'swift' }}
203+
uses: actions/cache@v4
204+
with:
205+
path: |
206+
clients/algoliasearch-client-swift/.build
207+
tests/output/swift/.build
208+
key: swift-build-${{ steps.versions.outputs.SWIFT_VERSION }}-${{ runner.os }}
209+
205210
- name: Set swiftformat version
206211
if: ${{ inputs.language == 'swift' }}
207212
id: swiftformat-version
208213
shell: bash
209-
run: echo "SWIFTFORMAT_VERSION=0.54.0" >> $GITHUB_OUTPUT
214+
run: echo "SWIFTFORMAT_VERSION=0.54.3" >> $GITHUB_OUTPUT
210215

211216
- name: Checkout swiftformat
212217
if: ${{ inputs.language == 'swift' }}
@@ -216,7 +221,7 @@ runs:
216221
ref: ${{ steps.swiftformat-version.outputs.SWIFTFORMAT_VERSION }}
217222
path: swiftformat
218223

219-
- name: Cache the build folder
224+
- name: Cache the build folder for swiftformat
220225
id: cache-swiftformat
221226
if: ${{ inputs.language == 'swift' }}
222227
uses: actions/cache@v4

0 commit comments

Comments
 (0)