Skip to content

Commit 7c1b19f

Browse files
committed
try running e2e tests
1 parent 716af69 commit 7c1b19f

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/cypress.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,19 @@ jobs:
3131
path: |
3232
./playground/node_modules
3333
key: ${{ hashFiles('playground/yarn.lock') }}
34+
35+
- name: Install yalc
36+
run: yarn global add yalc
37+
3438
- name: Install dependencies
3539
run: yarn --dev && yarn --cwd ./playground
36-
- name: Remove plugin symlink
37-
run: rm ./playground/src/plugins/meilisearch
38-
- name: Move plugin inside playground
39-
# Since the plugin is located at the root of the project but a symlink links
40-
# to it in ./playground/plugins/meilisearch it causes a circular
41-
# chaining problem.
42-
# Now that we removed the symlink (see previous step), we need to move our plugin in the
43-
# plugin directory of the playground.
44-
run: mkdir ./playground/src/plugins/meilisearch &&
45-
mv admin ./playground/src/plugins/meilisearch &&
46-
mv server ./playground/src/plugins/meilisearch &&
47-
mv strapi-admin.js ./playground/src/plugins/meilisearch &&
48-
mv strapi-server.js ./playground/src/plugins/meilisearch &&
49-
cp package.json ./playground/src/plugins/meilisearch
40+
41+
- name: Build and link the package
42+
run: |
43+
yarn build
44+
yalc publish
45+
yarn --cwd ./playground dlx yalc add --link strapi-plugin-meilisearch
46+
yarn --cwd ./playground install
5047
5148
- name: Run e2e browser tests
5249
uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)