From 827912298d652e28180290d75bbae744f538dee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Thu, 28 Mar 2024 15:09:42 +0000 Subject: [PATCH] Fix CI storybook hang --- .github/workflows/ci.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d63f14f..3d508d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,9 @@ jobs: - name: Install Playwright run: npx playwright install + - name: Build storybook + run: npm run build-storybook + - name: Test run: npm run test-storybook:ci diff --git a/package.json b/package.json index 37f4df3..032d864 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test-vite:watch": "vitest --watch", "test-storybook": "test-storybook --browsers firefox", "test-storybook:coverage": "npm run test-storybook -- --coverage", - "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && npm run test-storybook:coverage\"", + "test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npx http-server storybook-static --port 6006 --silent\" \"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook:coverage\"", "lint": "prettier --check . && eslint .", "format": "prettier --write .", "storybook": "storybook dev -p 6006",