diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a35a34..0bbb2cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: cache: "pnpm" registry-url: "https://registry.npmjs.org" - run: pnpm install + - run: pnpm exec playwright install --with-deps - run: pnpm run build - run: pnpm run lint:report - run: pnpm run test:report diff --git a/apps/docs/package.json b/apps/docs/package.json index 1216c3d..94558aa 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -27,9 +27,9 @@ "test": "pnpm run test:storybook:standalone", "test:report": "pnpm run test:storybook:standalone:report", "test:storybook:prepare": "pnpm exec playwright install --with-deps", - "test:storybook": "pnpm run test:storybook:prepare && test-storybook", - "test:storybook:watch": "pnpm run test:storybook:prepare && test-storybook --watch", - "test:storybook:report": "pnpm run test:storybook:prepare && JEST_JUNIT_OUTPUT_FILE=./reports/test-report-storybook.xml test-storybook --junit", + "test:storybook": "test-storybook", + "test:storybook:watch": "test-storybook --watch", + "test:storybook:report": "JEST_JUNIT_OUTPUT_FILE=./reports/test-report-storybook.xml test-storybook --junit", "test:storybook:standalone": "concurrently -k -s first -n SB,TEST -c magenta,blue \"pnpm run build --quiet && pnpm exec serve -Lp 6006 storybook-static\" \"wait-on tcp:6006 && pnpm run test:storybook\"", "test:storybook:standalone:report": "concurrently -k -s first -n SB,TEST -c magenta,blue \"pnpm run build --quiet && pnpm exec serve -Lp 6006 storybook-static\" \"wait-on tcp:6006 && pnpm run test:storybook:report\"", "lint": "pnpm run lint:tsc && pnpm run lint:eslint", diff --git a/apps/nextjs-example/package.json b/apps/nextjs-example/package.json index 4599da8..7e7bf9c 100644 --- a/apps/nextjs-example/package.json +++ b/apps/nextjs-example/package.json @@ -28,10 +28,10 @@ "test": "pnpm run test:playwright", "test:report": "pnpm run test:playwright:report", "test:playwright:prepare": "pnpm exec playwright install --with-deps", - "test:playwright": "pnpm run test:playwright:prepare && PLAYWRIGHT_HTML_REPORT=./reports/test-report-playwright playwright test --reporter=html", - "test:playwright:ui": "pnpm run test:playwright:prepare && playwright test --ui", - "test:playwright:show": "pnpm run test:playwright:prepare && playwright show-report ./reports/test-report-playwright", - "test:playwright:report": "pnpm run test:playwright:prepare && PLAYWRIGHT_JUNIT_OUTPUT_NAME=./reports/test-report-playwright.xml playwright test --reporter junit", + "test:playwright": "PLAYWRIGHT_HTML_REPORT=./reports/test-report-playwright playwright test --reporter=html", + "test:playwright:ui": "playwright test --ui", + "test:playwright:show": "playwright show-report ./reports/test-report-playwright", + "test:playwright:report": "PLAYWRIGHT_JUNIT_OUTPUT_NAME=./reports/test-report-playwright.xml playwright test --reporter junit", "lint": "pnpm run lint:tsc && pnpm run lint:eslint && pnpm run lint:stylelint", "lint:report": "pnpm run lint:tsc:report && pnpm run lint:eslint:report && pnpm run lint:stylelint:report", "lint:fix": "pnpm run lint:eslint:fix && pnpm run lint:stylelint:fix",