chore: fix pnpm E2E test to work on pnpm v7 (#7283)

* chore: fix pnpm E2E test

* fix?
This commit is contained in:
Joshua Chen 2022-05-02 13:38:08 +08:00 committed by GitHub
parent 53564f33ab
commit a6c007849e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ on:
paths: paths:
- packages/** - packages/**
- tsconfig.json - tsconfig.json
- .github/workflows/tests-e2e.yml
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@ -158,13 +159,14 @@ jobs:
run: yarn test:build:website -s run: yarn test:build:website -s
- name: Install test-website project with pnpm - name: Install test-website project with pnpm
run: | run: |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm npm install -g pnpm
pnpm install # Fix some peer dependencies errors
pnpm add @algolia/client-search @types/react@17 typescript
working-directory: ../test-website working-directory: ../test-website
env: env:
npm_config_registry: http://localhost:4873 npm_config_registry: http://localhost:4873
- name: Start test-website project - name: Start test-website project
run: pnpm run start -- --no-open run: pnpm start --no-open
working-directory: ../test-website working-directory: ../test-website
env: env:
E2E_TEST: true E2E_TEST: true