From 427f0cef6c52267b54c344b094b18464604f0d58 Mon Sep 17 00:00:00 2001 From: scottrippey Date: Wed, 27 Sep 2023 08:44:09 -0600 Subject: [PATCH] dev(storybook): add Chromatic to CI --- .github/workflows/code-check.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index d8d989c7..685fa542 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -82,6 +82,15 @@ jobs: working-directory: packages/nextjs run: pnpm run storybook:build + - name: "Storybook: Chromatic" + uses: chromaui/action@v1 + # Chromatic GitHub Action options + with: + workingDir: packages/nextjs + storybookBuildDir: storybook-static + exitOnceUploaded: true + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + - name: "Storybook: Run Tests" working-directory: packages/nextjs run: pnpm run test:storybook:start