From 641654adf811e51d1e33acd8b5c8376e2a0a996e Mon Sep 17 00:00:00 2001 From: Kezhik Kyzyl-ool Date: Tue, 23 Apr 2024 14:00:09 +0200 Subject: [PATCH] ci: local sb tests --- .github/workflows/pr-storybook-tests.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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"