update for vitest 4 #60
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 | |
| on: | |
| push: | |
| branches: | |
| - 'next-ui' | |
| jobs: | |
| chromatic: | |
| name: Run Chromatic | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: next-ui/package-lock.json | |
| - name: npm install | |
| working-directory: next-ui | |
| run: npm ci | |
| - name: i18n:compile | |
| working-directory: next-ui | |
| run: npm run i18n:compile | |
| - name: Run Chromatic | |
| id: chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| workingDir: next-ui | |
| exitOnceUploaded: true | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| autoAcceptChanges: 'next-ui' | |
| skip: 'dependabot/**' | |
| - name: Summary | |
| run: | | |
| echo "Chromatic:" >> $GITHUB_STEP_SUMMARY | |
| echo "- [Build](${{ steps.chromatic.outputs.buildUrl }})" >> $GITHUB_STEP_SUMMARY | |
| echo "- [Storybook](${{ steps.chromatic.outputs.storybookUrl }})" >> $GITHUB_STEP_SUMMARY |