diff --git a/.github/workflows/pr-storybook-tests.yml b/.github/workflows/pr-storybook-tests.yml index 77652adc51..81e9c83c7c 100644 --- a/.github/workflows/pr-storybook-tests.yml +++ b/.github/workflows/pr-storybook-tests.yml @@ -18,10 +18,8 @@ jobs: run: npx playwright install --with-deps - name: Build Storybook Static run: npm run build-storybook - - name: Serve Storybook Static - uses: Eun/http-server-action@v1.0.11 - with: - directory: storybook-static - port: 7007 - - name: Run Storybook Tests - run: npm run test-storybook + - name: Serve Storybook and run tests + run: | + npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + "npx http-server storybook-static --port 7007 --silent" \ + "npx wait-on tcp:6006 && npm run test-storybook"