Skip to content

feat(storybook): support Storybook 11 #1463

feat(storybook): support Storybook 11

feat(storybook): support Storybook 11 #1463

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
jobs:
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
- name: Lint
run: npm run lint
check-types:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
- name: Check types
run: npm run check-types
check-format:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
- name: Check format
run: npm run check-format
unit:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [22, 24, 26]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: npm run test
e2e-core:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [22, 24, 26]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/core --filter=@argos-ci/cli
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
USER_ACCESS_TOKEN: ${{ secrets.USER_ACCESS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-core-oidc:
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
- name: Build
run: pnpm exec -- turbo run build --filter=@argos-ci/cli
- name: Run OIDC upload e2e
run: pnpm --filter=@argos-ci/cli run e2e-oidc
env:
NODE_VERSION: current
OS: ubuntu-latest
e2e-core-tokenless:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
- name: Build
run: pnpm exec -- turbo run build --filter=@argos-ci/cli
- name: Run tokenless upload e2e
run: pnpm --filter=@argos-ci/cli run e2e-tokenless
env:
NODE_VERSION: current
OS: ubuntu-latest
e2e-cypress:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/cypress
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-playwright:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/playwright
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-puppeteer:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/puppeteer
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-webdriverio:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/webdriverio
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-storybook:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Serve Storybook and run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/storybook
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-vitest:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Run integration tests
run: pnpm exec -- turbo run e2e --filter=@argos-ci/vitest
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
# `@argos-ci/vitest` supports Vitest 4 and 5. The workspace is pinned to 5, so
# these two jobs put 4 back and re-run the same suites against it. They upload
# under their own build names — a build name owns one baseline, and the two
# majors are separate baselines even when the pixels agree.
e2e-vitest-compat:
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Downgrade to Vitest 4
run: >-
pnpm --filter=@argos-ci/vitest up "vitest@^4" "@vitest/browser@^4"
"@vitest/browser-playwright@^4" "@vitest/pretty-format@^4"
- name: Run integration tests
run: pnpm exec -- turbo run e2e-compat --filter=@argos-ci/vitest
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
e2e-storybook-vitest-compat:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Downgrade to Vitest 4
run: >-
pnpm --filter=@argos-ci/storybook up "vitest@^4" "@vitest/browser@^4"
"@vitest/browser-playwright@^4" "@vitest/coverage-v8@^4"
"@vitest/ui@^4"
- name: Run integration tests
run: pnpm exec -- turbo run e2e-compat --filter=@argos-ci/storybook
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}
# `@argos-ci/storybook` supports Storybook 8 through 11. The workspace is
# pinned to 10, so this job moves the package to the newest 11 pre-release and
# re-runs the Vitest suite against it, under its own build name. The Test
# Runner suite is left out for now: Storybook 11's config loader registers a
# Node module hook (`module.register()`), which Jest refuses, so
# `@storybook/test-runner` cannot load its config on 11 yet.
e2e-storybook-next:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup deps
uses: ./.github/actions/setup-deps
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade to the Storybook 11 pre-release
run: >-
pnpm --filter=@argos-ci/storybook up
"storybook@>=11.0.0-0 <12.0.0-0"
"@storybook/react-vite@>=11.0.0-0 <12.0.0-0"
"@storybook/addon-docs@>=11.0.0-0 <12.0.0-0"
"@storybook/addon-links@>=11.0.0-0 <12.0.0-0"
"@storybook/addon-themes@>=11.0.0-0 <12.0.0-0"
"@storybook/addon-vitest@>=11.0.0-0 <12.0.0-0"
"storybook-addon-pseudo-states@>=11.0.0-0 <12.0.0-0"
- name: Run integration tests
run: pnpm exec -- turbo run e2e-next --filter=@argos-ci/storybook
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
NODE_VERSION: ${{ matrix.node-version }}
OS: ${{ matrix.os }}