Switch from yarn to pnpm package manager
#2135
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| merge_group: | |
| jobs: | |
| cypress-autocomplete-client-run: | |
| runs-on: ubuntu-latest | |
| # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) | |
| # Will not run if the event is a PR to pre-release-beta/* | |
| # Will not run if the event is a PR to prototype-beta/* | |
| # Will not run if the event is a push on pre-release-beta/* | |
| # Will still run for each push to bump-meilisearch-v* and prototype-beta/* | |
| if: | | |
| github.event_name != 'pull_request' || | |
| !startsWith(github.base_ref, 'bump-meilisearch-v') && | |
| !startsWith(github.base_ref, 'pre-release-beta/') && | |
| !startsWith(github.base_ref, 'prototype-beta/') && | |
| !startsWith(github.head_ref, 'pre-release-beta/') | |
| services: | |
| meilisearch: | |
| image: getmeili/meilisearch-enterprise:latest | |
| env: | |
| MEILI_MASTER_KEY: 'masterKey' | |
| MEILI_NO_ANALYTICS: 'true' | |
| ports: | |
| - '7700:7700' | |
| name: autocomplete-client end-to-end-tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - 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: pnpm playground:autocomplete | |
| env: playground=local | |
| - uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| - uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: cypress-videos | |
| path: cypress/videos | |
| cypress-instant-meilisearch-run: | |
| runs-on: ubuntu-latest | |
| # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) | |
| # Will not run if the event is a PR to pre-release-beta/* | |
| # Will not run if the event is a PR to prototype-beta/* | |
| # Will not run if the event is a push on pre-release-beta/* | |
| # Will still run for each push to bump-meilisearch-v* and prototype-beta/* | |
| if: | | |
| github.event_name != 'pull_request' || | |
| !startsWith(github.base_ref, 'bump-meilisearch-v') && | |
| !startsWith(github.base_ref, 'pre-release-beta/') && | |
| !startsWith(github.base_ref, 'prototype-beta/') && | |
| !startsWith(github.head_ref, 'pre-release-beta/') | |
| services: | |
| meilisearch: | |
| image: getmeili/meilisearch-enterprise:latest | |
| env: | |
| MEILI_MASTER_KEY: 'masterKey' | |
| MEILI_NO_ANALYTICS: 'true' | |
| ports: | |
| - '7700:7700' | |
| name: instant-meilisearch end-to-end-tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - 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: pnpm playground:local-react | |
| env: playground=local | |
| - uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| - uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: cypress-videos | |
| path: cypress/videos | |
| integration_tests: | |
| # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) | |
| # Will not run if the event is a PR to pre-release-beta/* | |
| # Will not run if the event is a PR to prototype-beta/* | |
| # Will not run if the event is a push on pre-release-beta/* | |
| # Will still run for each push to bump-meilisearch-v* and prototype-beta/* | |
| if: | | |
| github.event_name != 'pull_request' || | |
| !startsWith(github.base_ref, 'bump-meilisearch-v') && | |
| !startsWith(github.base_ref, 'pre-release-beta/') && | |
| !startsWith(github.base_ref, 'prototype-beta/') && | |
| !startsWith(github.head_ref, 'pre-release-beta/') | |
| runs-on: ubuntu-latest | |
| services: | |
| meilisearch: | |
| image: getmeili/meilisearch-enterprise:latest | |
| env: | |
| MEILI_MASTER_KEY: 'masterKey' | |
| MEILI_NO_ANALYTICS: 'true' | |
| ports: | |
| - '7700:7700' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ['20', '22', '24'] | |
| name: integration-tests (Node.js ${{ matrix.node-version }}) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/set-up-node | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Build all the playgrounds and the packages | |
| run: pnpm build | |
| - name: Run the node playground | |
| run: pnpm playground:node | |
| style_tests: | |
| name: style-check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/set-up-node | |
| - name: Tests style | |
| run: pnpm style | |
| - name: Yaml Style | |
| uses: ibiqlik/action-yamllint@v3 | |
| with: | |
| config_file: .yamllint.yml | |
| types_tests: | |
| runs-on: ubuntu-latest | |
| name: types-check | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/set-up-node | |
| - name: Run types check | |
| run: pnpm test:types |