Skip to content

Commit

Permalink
try esm and cache playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmohanty11 committed Feb 17, 2024
1 parent cf4d976 commit d6bedcd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,20 @@ jobs:
- name: Change directory to e2e-react
run: cd packages/e2e-react

- name: Install Playwright Browsers
- name: Get installed Playwright version
id: playwright-version
run: echo "::set-output name=version::$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')"

- uses: actions/cache@v3
id: playwright-cache
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright's dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Run Playwright tests
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-expect-error no types served yet
import { EmbeddedChat } from "@embeddedchat/react";
import { EmbeddedChat } from "@embeddedchat/react/dist/esm/index.js";

function App() {
return (
Expand Down

0 comments on commit d6bedcd

Please sign in to comment.