Skip to content

Commit

Permalink
ci: fix the create-react-app e2e test (#3988)
Browse files Browse the repository at this point in the history
* ci: fix the `create-react-app` e2e test

* chore: remove resolution from storybook e2e
  • Loading branch information
merceyz authored Jan 24, 2022
1 parent 6e1446e commit c477f41
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/e2e-cra-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,23 @@ jobs:
run: |
source scripts/e2e-setup-ci.sh
yarn dlx create-react-app my-cra && cd my-cra
yarn add -D eslint-config-react-app
# TODO: Remove when create-react-app fixes their ESLint setup
yarn add -D eslint-config-react-app eslint
yarn build
- name: 'Running the TypeScript integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn dlx create-react-app my-cra-ts --template typescript && cd my-cra-ts
yarn add -D eslint-config-react-app
# TODO: Remove when create-react-app fixes their ESLint setup
yarn add -D eslint-config-react-app eslint
# TODO: Remove when https://github.com/facebook/create-react-app/pull/11751 is released
yarn add -D @types/testing-library__jest-dom
yarn build
if: |
always()
5 changes: 4 additions & 1 deletion .github/workflows/e2e-storybook-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
run: |
source scripts/e2e-setup-ci.sh
yarn dlx create-react-app my-cra && cd my-cra
yarn add -D eslint-config-react-app
# TODO: Remove when create-react-app fixes their ESLint setup
yarn add -D eslint-config-react-app eslint
yarn dlx -p @storybook/cli@next sb init --yes
yarn build-storybook

0 comments on commit c477f41

Please sign in to comment.