|
10 | 10 | - main |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - cypress-run: |
| 13 | + cypress-autocomplete-client-run: |
14 | 14 | runs-on: ubuntu-latest |
15 | 15 | # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) |
16 | 16 | # Will not run if the event is a PR to pre-release-beta/* |
|
31 | 31 | MEILI_NO_ANALYTICS: 'true' |
32 | 32 | ports: |
33 | 33 | - '7700:7700' |
34 | | - name: end-to-end-tests |
| 34 | + name: autocomplete-client end-to-end-tests |
| 35 | + steps: |
| 36 | + - name: Checkout |
| 37 | + uses: actions/checkout@v3 |
| 38 | + - name: Setup node |
| 39 | + uses: actions/setup-node@v3 |
| 40 | + with: |
| 41 | + node-version: 18 |
| 42 | + cache: yarn |
| 43 | + - name: Install dependencies |
| 44 | + run: yarn |
| 45 | + - name: Run local browser tests |
| 46 | + uses: cypress-io/github-action@v5 |
| 47 | + with: |
| 48 | + project: ./playgrounds/autocomplete |
| 49 | + wait-on: 'http://localhost:7700' |
| 50 | + # Tests are only done on one playground to avoid long testing time |
| 51 | + start: yarn playground:autocomplete |
| 52 | + env: playground=local |
| 53 | + - uses: actions/upload-artifact@v3 |
| 54 | + if: failure() |
| 55 | + with: |
| 56 | + name: cypress-screenshots |
| 57 | + path: cypress/screenshots |
| 58 | + - uses: actions/upload-artifact@v3 |
| 59 | + if: failure() |
| 60 | + with: |
| 61 | + name: cypress-videos |
| 62 | + path: cypress/videos |
| 63 | + cypress-instant-meilisearch-run: |
| 64 | + runs-on: ubuntu-latest |
| 65 | + # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) |
| 66 | + # Will not run if the event is a PR to pre-release-beta/* |
| 67 | + # Will not run if the event is a PR to prototype-beta/* |
| 68 | + # Will not run if the event is a push on pre-release-beta/* |
| 69 | + # Will still run for each push to bump-meilisearch-v* and prototype-beta/* |
| 70 | + if: | |
| 71 | + github.event_name != 'pull_request' || |
| 72 | + !startsWith(github.base_ref, 'bump-meilisearch-v') && |
| 73 | + !startsWith(github.base_ref, 'pre-release-beta/') && |
| 74 | + !startsWith(github.base_ref, 'prototype-beta/') && |
| 75 | + !startsWith(github.head_ref, 'pre-release-beta/') |
| 76 | + services: |
| 77 | + meilisearch: |
| 78 | + image: getmeili/meilisearch:latest |
| 79 | + env: |
| 80 | + MEILI_MASTER_KEY: 'masterKey' |
| 81 | + MEILI_NO_ANALYTICS: 'true' |
| 82 | + ports: |
| 83 | + - '7700:7700' |
| 84 | + name: instant-meilisearch end-to-end-tests |
35 | 85 | steps: |
36 | 86 | - name: Checkout |
37 | 87 | uses: actions/checkout@v3 |
|
0 commit comments