From aa50b63545247fbf4bbecb630d29649c01d0b4b4 Mon Sep 17 00:00:00 2001 From: Laura Whitaker Date: Thu, 13 Jun 2024 16:18:25 -0600 Subject: [PATCH] Set up CI to run storybook tests --- .github/workflows/storybook-tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/storybook-tests.yml diff --git a/.github/workflows/storybook-tests.yml b/.github/workflows/storybook-tests.yml new file mode 100644 index 000000000..5d9a4fce3 --- /dev/null +++ b/.github/workflows/storybook-tests.yml @@ -0,0 +1,20 @@ +name: Storybook Tests +on: deployment_status +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + if: github.event.deployment_status.state == 'success' + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + - name: Install dependencies + run: pnpm install + - name: Install Playwright + run: npx playwright install --with-deps + - name: Run Storybook tests + run: pnpm stories:test + env: + TARGET_URL: '${{ github.event.deployment_status.target_url }}'