From eeb9ed2346ea22e03402c4dd3acbf3e6f911872b Mon Sep 17 00:00:00 2001 From: marcelxsilva Date: Thu, 22 Feb 2024 11:02:31 -0300 Subject: [PATCH] feat: enable chromatic in actions --- .github/workflows/storybook-test.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/storybook-test.yml b/.github/workflows/storybook-test.yml index 6712ac9..7e94fd2 100644 --- a/.github/workflows/storybook-test.yml +++ b/.github/workflows/storybook-test.yml @@ -24,9 +24,9 @@ jobs: run: yarn storybook:build --quiet - name: Serve Storybook and run tests run: | - npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + npx concurrently -k -s first -n "Storybook Build,Storybook Test" -c "auto" \ "npx http-server storybook-static --port 6006 --silent" \ - "npx wait-on http-get://127.0.0.1:6006 && yarn storybook:test" + "npx wait-on http-get://127.0.0.1:6006 && test-storybook" chromatic-flow: // temporarily disabled runs-on: ubuntu-latest steps: diff --git a/package.json b/package.json index 0949253..3b47406 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "version:patch": "npm version patch", "storybook:dev": "storybook dev -p 6006", "storybook:build": "storybook build", - "storybook:test": "test-storybook" + "storybook:test": "yarn storybook:build; npx concurrently -k -s first -n \"Storybook Build,Storybook Test\" -c \"auto\" \"npx http-server storybook-static --port 6006 --silent \" \"npx wait-on http-get://127.0.0.1:6006 && test-storybook \"" }, "lint-staged": { "*.{ts,tsx}": [