From 7cba18702bcbc77b47cc6d09fc2b2e02c14b2e75 Mon Sep 17 00:00:00 2001 From: marcelxsilva Date: Tue, 6 Feb 2024 15:56:41 -0300 Subject: [PATCH] fix: build storybook in actions --- .github/workflows/storybook-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/storybook-test.yml b/.github/workflows/storybook-test.yml index bdeaf28..b6f4def 100644 --- a/.github/workflows/storybook-test.yml +++ b/.github/workflows/storybook-test.yml @@ -20,5 +20,12 @@ jobs: run: yarn - name: Install Playwright run: npx playwright install --with-deps + - name: Serve Storybook and run tests + run: | + npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + "npx http-server storybook-static --port 6006 --silent" \ + "npx wait-on tcp:6006" - name: Run Storybook tests run: yarn storybook:test + env: + TARGET_URL: http://localhost:6006