@@ -112,13 +112,13 @@ jobs:
112112 # playwright to install everything for us.
113113 - name : Install Playwright browsers with dependencies
114114 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit != 'true' }}
115- run : npm run playwright -- install --with-deps
115+ run : npx playwright install --with-deps
116116
117117 # If the Playwright browser binaries were restored, we tell
118118 # playwright to install just system deps.
119119 - name : Install Playwright's dependencies
120120 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit == 'true' }}
121- run : npm run playwright -- install-deps
121+ run : npx playwright install-deps
122122
123123 - name : Test with coverage
124124 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
@@ -130,7 +130,7 @@ jobs:
130130 argsCoverage='--config=web-test-runner.coverage.config.js'
131131 echo 'TEST_COLLECTED_COVERAGE=true' >> $GITHUB_ENV
132132 fi
133- npm run sdk: test -- $argsCoverage
133+ npx turbo run test --filter=@embrace-io/web-sdk -- $argsCoverage
134134 env :
135135 GITHUB_EVENT_ACTION : ${{ github.event.action }}
136136
@@ -222,18 +222,18 @@ jobs:
222222 # playwright to install everything for us.
223223 - name : Install Playwright browsers with dependencies
224224 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit != 'true' }}
225- run : npm run playwright -- install --with-deps
225+ run : npx playwright install --with-deps
226226
227227 # If the Playwright browser binaries were restored, we tell
228228 # playwright to install just system deps.
229229 - name : Install Playwright's dependencies
230230 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit == 'true' }}
231- run : npm run playwright -- install-deps
231+ run : npx playwright install-deps
232232
233233 - name : Test SDK multiple browsers
234234 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
235235 run : |
236- npm run sdk: test:multiBrowsers
236+ npm run test:multiBrowsers
237237
238238 - name : Cache successful test results
239239 if : ${{ success() }}
@@ -325,24 +325,18 @@ jobs:
325325 # playwright to install everything for us.
326326 - name : Install Playwright browsers with dependencies
327327 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit != 'true' }}
328- run : npm run playwright -- install --with-deps
328+ run : npx playwright install --with-deps
329329
330330 # If the Playwright browser binaries were restored, we tell
331331 # playwright to install just system deps.
332332 - name : Install Playwright's dependencies
333333 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit == 'true' }}
334- run : npm run playwright -- install-deps
335-
336- # We need the SDK to be built, so we can use it during performance tests
337- - name : Build SDK
338- if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
339- run : |
340- npm run sdk:compile
334+ run : npx playwright install-deps
341335
342336 - name : Test performance
343337 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
344338 run : |
345- npm run sdk: test:performance
339+ npm run test:performance
346340
347341 - name : Cache successful test results
348342 if : ${{ success() }}
@@ -458,7 +452,7 @@ jobs:
458452 - name : Test CLI
459453 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
460454 run : |
461- npm run test --prefix cli
455+ npx turbo run test --filter=@embrace-io/web- cli
462456
463457 - name : Cache successful test results
464458 if : ${{ success() }}
@@ -542,26 +536,20 @@ jobs:
542536 # playwright to install everything for us.
543537 - name : Install Playwright browsers with dependencies
544538 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit != 'true' }}
545- run : npm run playwright -- install --with-deps
539+ run : npx playwright install --with-deps
546540
547541 # If the Playwright browser binaries were restored, we tell
548542 # playwright to install just system deps.
549543 - name : Install Playwright's dependencies
550544 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' && steps.playwright-cache.outputs.cache-hit == 'true' }}
551- run : npm run playwright -- install-deps
552-
553- # We need the SDK and CLI to be built, so we can use them in the sample apps
554- - name : Build SDK and CLI
555- if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
556- run : |
557- npm run compile
545+ run : npx playwright install-deps
558546
559547 - name : Test Integration
560548 if : ${{ env.TEST_PREVIOUSLY_PASSED != 'true' }}
561549 # Build needs to run first so e2e tests can use the built apps and not build again
562550 # Run the e2e tests in a virtual display, since Playwright needs a display to run
563551 run : |
564- npm run sdk: test:integration
552+ npm run test:integration
565553
566554 - name : Cache successful test results
567555 if : ${{ success() }}
@@ -695,7 +683,7 @@ jobs:
695683 - name : Lint
696684 if : ${{ env.LINT_PREVIOUSLY_PASSED != 'true' }}
697685 run : |
698- npm run sdk: lint
686+ npm run lint
699687
700688 - name : Cache successful lint results
701689 if : ${{ success() }}
@@ -748,7 +736,7 @@ jobs:
748736 - name : Type check
749737 if : ${{ env.TYPE_CHECK_PREVIOUSLY_PASSED != 'true' }}
750738 run : |
751- npm run sdk: check
739+ npm run check
752740
753741 - name : Cache successful type check results
754742 if : ${{ success() }}
@@ -800,30 +788,15 @@ jobs:
800788 run : |
801789 npm ci
802790
803- - name : Build SDK
804- if : ${{ env.VALIDATE_PREVIOUSLY_PASSED != 'true' }}
805- run : |
806- npm run sdk:compile
807-
808- - name : Validate SDK
809- if : ${{ env.VALIDATE_PREVIOUSLY_PASSED != 'true' }}
810- run : |
811- npm run sdk:validate
812-
813- - name : Build CLI
814- if : ${{ env.VALIDATE_PREVIOUSLY_PASSED != 'true' }}
815- run : |
816- npm run cli:compile
817-
818- - name : Validate CLI
791+ - name : Build All Packages
819792 if : ${{ env.VALIDATE_PREVIOUSLY_PASSED != 'true' }}
820793 run : |
821- npm run cli:validate
794+ npm run build
822795
823- - name : Build Demo
796+ - name : Validate Packages
824797 if : ${{ env.VALIDATE_PREVIOUSLY_PASSED != 'true' }}
825798 run : |
826- npm run build --prefix demo/frontend
799+ npm run validate
827800
828801 - name : Cache successful validate results
829802 if : ${{ success() }}
@@ -868,15 +841,16 @@ jobs:
868841
869842 - name : Build SDK and CLI
870843 run : |
871- npm run compile
844+ npm run build
872845
873846 - name : Publish SDK
874847 run : |
848+ cd packages/web-sdk
875849 npm publish --provenance --access public
876850
877851 - name : Publish CLI
878852 run : |
879- cd cli
853+ cd packages/web- cli
880854 npm publish --provenance --access public
881855
882856 # Publishes preview packages to pkg.pr.new after CI passes on main.
@@ -910,10 +884,10 @@ jobs:
910884 run : npm ci
911885
912886 - name : Build SDK and CLI
913- run : npm run compile
887+ run : npm run build
914888
915889 - name : Publish preview packages
916- run : npx --yes pkg-pr-new publish --compact '.' './cli'
890+ run : npx --yes pkg-pr-new publish --compact './packages/web-sdk ' './packages/web- cli'
917891
918892 # not used yet, there are no "production" releases
919893 report-release-slack :
0 commit comments