Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/actions/set-up-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Set up Node.js and install dependencies"
description: "Install pnpm, configure Node.js, and install dependencies with pnpm"
inputs:
node-version:
description: "Same as in actions/setup-node"
default: "lts/*"
registry-url:
description: "Same as in actions/setup-node"
default: ""
runs:
using: "composite"
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
registry-url: ${{ inputs.registry-url }}
cache: "pnpm"
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
44 changes: 31 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "monthly"
interval: 'monthly'
labels:
- "dependencies"
rebase-strategy: disabled
- 'dependencies'

- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
interval: 'monthly'
labels:
- skip-changelog
- dependencies
versioning-strategy: increase
rebase-strategy: disabled
allow:
- dependency-name: meilisearch
groups:
vite:
patterns:
- 'vite'
- '@vitejs/plugin-vue'
react:
patterns:
- 'react'
- 'react-dom'
- 'react-router-dom'
instantsearch:
patterns:
- '*instantsearch*'
- '@algolia/*'
- 'algoliasearch'
- 'algoliasearch-helper'
- 'search-insights'
eslint:
patterns:
- '*eslint*'
- 'globals'
prettier:
patterns:
- 'prettier'
- 'prettier-plugin-jsdoc'
16 changes: 0 additions & 16 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

36 changes: 10 additions & 26 deletions .github/workflows/meilisearch-prototype-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/autocomplete
wait-on: 'http://localhost:7700'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:autocomplete
start: pnpm playground:autocomplete
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand All @@ -84,20 +78,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/local-react
wait-on: 'http://localhost:7700'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:local-react
start: pnpm playground:local-react
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand All @@ -123,18 +111,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['18', '20']
name: integration-tests (Node.js ${{ matrix.node }})
node-version: ['20', '22', '24']
name: integration-tests (Node.js ${{ matrix.node-version }})
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
- uses: ./.github/actions/set-up-node
with:
cache: yarn
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install
node-version: ${{ matrix.node-version }}
- name: Run tests
run: yarn test
run: pnpm test
- name: Build project
run: yarn build
run: pnpm build
36 changes: 10 additions & 26 deletions .github/workflows/pre-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/autocomplete
wait-on: 'http://localhost:7700'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:autocomplete
start: pnpm playground:autocomplete
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand Down Expand Up @@ -83,20 +77,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/local-react
wait-on: 'http://localhost:7700'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:local-react
start: pnpm playground:local-react
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand All @@ -123,18 +111,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['18', '20']
name: integration-tests (Node.js ${{ matrix.node }})
node-version: ['20', '22', '24']
name: integration-tests (Node.js ${{ matrix.node-version }})
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
- uses: ./.github/actions/set-up-node
with:
cache: yarn
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install
node-version: ${{ matrix.node-version }}
- name: Run tests
run: yarn test
run: pnpm test
- name: Build project
run: yarn build
run: pnpm build
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v5
- uses: ./.github/actions/set-up-node
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn
- name: Create .npmrc file
run: |
cat << EOF > "$HOME/.npmrc"
Expand All @@ -33,8 +30,8 @@ jobs:
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: yarn release
version: yarn version-packages
publish: pnpm release
version: pnpm version-packages
env:
GITHUB_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
58 changes: 15 additions & 43 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/autocomplete
wait-on: 'http://localhost:7700,http://localhost:5173'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:autocomplete
start: pnpm playground:autocomplete
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand Down Expand Up @@ -83,20 +77,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run local browser tests
uses: cypress-io/github-action@v6
with:
project: ./playgrounds/local-react
wait-on: 'http://localhost:7700'
# Tests are only done on one playground to avoid long testing time
start: yarn playground:local-react
start: pnpm playground:local-react
env: playground=local
- uses: actions/upload-artifact@v5
if: failure()
Expand Down Expand Up @@ -132,37 +120,27 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['18', '20']
name: integration-tests (Node.js ${{ matrix.node }})
node-version: ['20', '22', '24']
name: integration-tests (Node.js ${{ matrix.node-version }})
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
- uses: ./.github/actions/set-up-node
with:
cache: yarn
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install
node-version: ${{ matrix.node-version }}
- name: Run tests
run: yarn test
run: pnpm test
- name: Build all the playgrounds and the packages
run: yarn build
run: pnpm build
- name: Run the node playground
run: yarn playground:node
run: pnpm playground:node
style_tests:
name: style-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install
- uses: ./.github/actions/set-up-node
- name: Tests style
run: yarn style
run: pnpm style
- name: Yaml Style
uses: ibiqlik/action-yamllint@v3
with:
Expand All @@ -172,12 +150,6 @@ jobs:
name: types-check
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v5
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- uses: ./.github/actions/set-up-node
- name: Run types check
run: yarn test:types
run: pnpm test:types
Loading
Loading