chore(deps): update storybook packages #278
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
e2e-tests: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.node }} | |
cancel-in-progress: true | |
name: 'Starter' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# Keep this in sync with the oldest Node.js version supported by the storybook | |
node: [18, 19, 20] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build packages | |
run: pnpm package | |
env: | |
NODE_ENV: 'production' | |
- name: Create Sample Project | |
shell: pwsh | |
run: | | |
$packages=Get-ChildItem -Path packages -Recurse -Filter "*.tgz" | |
echo "$packages" | |
New-Item -Path ${{ runner.temp }}/example -ItemType Directory | |
pnpm dlx nuxt init ${{ runner.temp }}/example --packageManager pnpm | |
cd ${{ runner.temp }}/example | |
pnpm dlx [email protected] init | |
pnpm add $packages | |
- name: Build Storybook | |
run: pnpm build-storybook | |
working-directory: ${{ runner.temp }}/example |