Update Preset Patterns, GH Workflows, and add Husky hooks (#23) #13
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: Test 🧪 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: Run Storybook tests 🃏 | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Install Playwright | |
run: bunx playwright install --with-deps | |
- name: Build Storybook | |
# https://github.com/storybookjs/storybook/issues/6408 | |
run: NODE_OPTIONS=--max_old_space_size=8192 bun storybook:build --quiet | |
- name: Serve Storybook and run tests | |
run: bun test:ci |