Adding upstream version 0.31.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
091495b2f3
commit
5d4914ed7f
61 changed files with 30627 additions and 0 deletions
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
name: Bug Report 🐞
|
||||
about: Create a report to help us improve.
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
<!-- This is not an exhaustive model but a help. No step is mandatory. -->
|
||||
|
||||
**Description**
|
||||
Description of what the bug is about.
|
||||
|
||||
**Expected behavior**
|
||||
What you expected to happen.
|
||||
|
||||
**Current behavior**
|
||||
What happened.
|
||||
|
||||
**Screenshots or Logs**
|
||||
If applicable, add screenshots or logs to help explain your problem.
|
||||
|
||||
**Environment (please complete the following information):**
|
||||
- OS: [e.g. Debian GNU/Linux]
|
||||
- Meilisearch version: [e.g. v.0.20.0]
|
||||
- meilisearch-go version: [e.g v0.14.1]
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Support questions & other
|
||||
url: https://discord.meilisearch.com/
|
||||
about: Support is not handled here but on our Discord
|
18
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
18
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
name: Feature Request & Enhancement 💡
|
||||
about: Suggest a new idea for the project.
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
<!-- This is not an exhaustive model but a help. No step is mandatory. -->
|
||||
|
||||
**Description**
|
||||
Brief explanation of the feature.
|
||||
|
||||
**Basic example**
|
||||
If the proposal involves something new or a change, include a basic example. How would you use the feature? In which context?
|
||||
|
||||
**Other**
|
||||
Any other things you want to add.
|
21
.github/dependabot.yml
vendored
Normal file
21
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: 'github-actions'
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
labels:
|
||||
- 'skip-changelog'
|
||||
- 'dependencies'
|
||||
rebase-strategy: disabled
|
||||
|
||||
- package-ecosystem: gomod
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
time: '04:00'
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- skip-changelog
|
||||
- dependencies
|
||||
rebase-strategy: disabled
|
39
.github/release-draft-template.yml
vendored
Normal file
39
.github/release-draft-template.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name-template: 'v$RESOLVED_VERSION 🐹'
|
||||
tag-template: 'v$RESOLVED_VERSION'
|
||||
exclude-labels:
|
||||
- 'skip-changelog'
|
||||
version-resolver:
|
||||
minor:
|
||||
labels:
|
||||
- 'breaking-change'
|
||||
default: patch
|
||||
categories:
|
||||
- title: '⚠️ Breaking changes'
|
||||
label: 'breaking-change'
|
||||
- title: '🚀 Enhancements'
|
||||
label: 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
label: 'bug'
|
||||
- title: '🔒 Security'
|
||||
label: 'security'
|
||||
- title: '⚙️ Maintenance/misc'
|
||||
label:
|
||||
- 'maintenance'
|
||||
- 'documentation'
|
||||
template: |
|
||||
$CHANGES
|
||||
|
||||
Thanks again to $CONTRIBUTORS! 🎉
|
||||
no-changes-template: 'Changes are coming soon 😎'
|
||||
sort-direction: 'ascending'
|
||||
replacers:
|
||||
- search: '/(?:and )?@dependabot-preview(?:\[bot\])?,?/g'
|
||||
replace: ''
|
||||
- search: '/(?:and )?@dependabot(?:\[bot\])?,?/g'
|
||||
replace: ''
|
||||
- search: '/(?:and )?@bors(?:\[bot\])?,?/g'
|
||||
replace: ''
|
||||
- search: '/(?:and )?@meili-bot,?/g'
|
||||
replace: ''
|
||||
- search: '/(?:and )?@meili-bors(?:\[bot\])?,?/g'
|
||||
replace: ''
|
16
.github/scripts/check-release.sh
vendored
Normal file
16
.github/scripts/check-release.sh
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Checking if current tag matches the package version
|
||||
current_tag=$(echo $GITHUB_REF | cut -d '/' -f 3 | sed -r 's/^v//')
|
||||
|
||||
file1='version.go'
|
||||
file_tag1=$(grep 'const VERSION' -A 0 $file1 | cut -d '=' -f2 | tr -d '"' | tr -d ' ')
|
||||
|
||||
if [ "$current_tag" != "$file_tag1" ]; then
|
||||
echo "Error: the current tag does not match the version in package file(s)."
|
||||
echo "$file1: found $file_tag1 - expected $current_tag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo 'OK'
|
||||
exit 0
|
44
.github/workflows/pre-release-tests.yml
vendored
Normal file
44
.github/workflows/pre-release-tests.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Testing the code base against the Meilisearch pre-releases
|
||||
name: Pre-Release Tests
|
||||
|
||||
# Will only run for PRs and pushes to bump-meilisearch-v*
|
||||
on:
|
||||
push:
|
||||
branches: bump-meilisearch-v*
|
||||
pull_request:
|
||||
branches: bump-meilisearch-v*
|
||||
|
||||
jobs:
|
||||
integration_tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
# Current go.mod version and latest stable go version
|
||||
go: [1.16, 1.17]
|
||||
include:
|
||||
- go: 1.16
|
||||
tag: current
|
||||
- go: 1.17
|
||||
tag: latest
|
||||
|
||||
name: integration-tests-against-rc (go ${{ matrix.tag }} version)
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go }}
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v4
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
if [ -f Gopkg.toml ]; then
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
dep ensure
|
||||
fi
|
||||
- name: Get the latest Meilisearch RC
|
||||
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV
|
||||
- name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker
|
||||
run: docker run -d -p 7700:7700 getmeili/meilisearch:${{ env.MEILISEARCH_VERSION }} meilisearch --master-key=masterKey --no-analytics
|
||||
- name: Run integration tests
|
||||
run: go test -v ./...
|
15
.github/workflows/release-check.yml
vendored
Normal file
15
.github/workflows/release-check.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: Validate release version
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Validate release version
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check release validity
|
||||
run: sh .github/scripts/check-release.sh
|
16
.github/workflows/release-drafter.yml
vendored
Normal file
16
.github/workflows/release-drafter.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: release-drafter/release-drafter@v6
|
||||
with:
|
||||
config-name: release-draft-template.yml
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }}
|
69
.github/workflows/tests.yml
vendored
Normal file
69
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
name: Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
# trying and staging branches are for BORS config
|
||||
branches:
|
||||
- trying
|
||||
- staging
|
||||
- main
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
name: linter
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v4
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v6
|
||||
with:
|
||||
version: v1.45.2
|
||||
- name: Run go vet
|
||||
run: go vet
|
||||
- name: Yaml linter
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
config_file: .yamllint.yml
|
||||
|
||||
integration_tests:
|
||||
runs-on: ubuntu-latest
|
||||
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
|
||||
# Will still run for each push to bump-meilisearch-v*
|
||||
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
|
||||
strategy:
|
||||
matrix:
|
||||
# Current go.mod version and latest stable go version
|
||||
go: [1.16, 1.17]
|
||||
include:
|
||||
- go: 1.16
|
||||
tag: current
|
||||
- go: 1.17
|
||||
tag: latest
|
||||
|
||||
name: integration-tests (go ${{ matrix.tag }} version)
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go }}
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v4
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
if [ -f Gopkg.toml ]; then
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
dep ensure
|
||||
fi
|
||||
- name: Meilisearch setup (latest version) with Docker
|
||||
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics
|
||||
- name: Run integration tests
|
||||
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v5
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue