Skip to content

Commit 77d332a

Browse files
committed
Seed database before running cypress tests
1 parent 6df24e8 commit 77d332a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/cypress.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
meilisearch:
1313
image: getmeili/meilisearch:latest
1414
env:
15-
MEILI_MASTER_KEY: 'masterKey'
16-
MEILI_NO_ANALYTICS: 'true'
15+
MEILI_MASTER_KEY: "masterKey"
16+
MEILI_NO_ANALYTICS: "true"
1717
ports:
18-
- '7700:7700'
18+
- "7700:7700"
1919

2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323
- name: Setup node
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: '20.x'
26+
node-version: "20.x"
2727
cache: yarn
2828
- name: Cache dependencies
2929
uses: actions/cache@v3
@@ -46,6 +46,11 @@ jobs:
4646
cd ..
4747
yarn --cwd ./playground install
4848
49+
- name: Seed playground database
50+
run: |
51+
mkdir -p playground/.tmp
52+
yarn playground:setup
53+
4954
- name: Run e2e browser tests
5055
uses: cypress-io/github-action@v6
5156
with:

0 commit comments

Comments
 (0)