Upgraded storybook version #4433
Workflow file for this run
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: "Chromatic & Storybook Tests" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "packages/lib/**" | |
| pull_request: | |
| paths: | |
| - "packages/lib/**" | |
| jobs: | |
| chromatic-deployment: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Node.js 22.x | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 22.x | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@v1 | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| exitOnceUploaded: true | |
| exitZeroOnChanges: true | |
| workingDir: packages/lib | |
| forceRebuild: true | |
| storybook-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install Node.js 22.x | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 22.x | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Storybook | |
| run: | | |
| cd packages/lib | |
| npm run build-storybook -- --quiet | |
| - name: Serve Storybook | |
| run: npx http-server ./packages/lib/storybook-static -p 6006 & | |
| - name: Run Storybook Tests | |
| run: | | |
| cd packages/lib | |
| npx playwright install --with-deps | |
| npm run test-storybook |