From 4c12233b111def9a4b124c0ea4ad2c5eaec77c7f Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 3 Jan 2025 00:06:43 +0900 Subject: [PATCH] Check Storybook build on CI for PRs --- .github/workflows/storybook-check.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/storybook-check.yml diff --git a/.github/workflows/storybook-check.yml b/.github/workflows/storybook-check.yml new file mode 100644 index 0000000000000..4e430dc017cd6 --- /dev/null +++ b/.github/workflows/storybook-check.yml @@ -0,0 +1,28 @@ +name: Check Storybook build + +on: pull_request + +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for pull requests + # or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' }} + + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} + + - name: Setup Node.js and install dependencies + uses: ./.github/setup-node + + - name: Build Storybook + run: npm run storybook:build