(BETA) LC-173: Migrate LambdaCurry/forms to ShadCN tailwind V4 #166
This file contains hidden or 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: Run Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.9.0' | |
| - name: Setup Yarn Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn install | |
| - uses: dtinth/setup-github-actions-caching-for-turbo@v1 | |
| - name: Install Playwright Chromium | |
| run: npx playwright install chromium | |
| - name: Build Storybook | |
| run: yarn build-storybook | |
| - name: Start Storybook server | |
| run: yarn workspace @lambdacurry/forms-docs storybook --ci --port 6006 & | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| - name: Wait for Storybook to be ready | |
| run: npx wait-on http://localhost:6006 | |
| - name: Run tests | |
| run: yarn test | |
| - name: Upload artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-failure | |
| path: packages/components/storybook-static | |
| retention-days: 2 |