Repository navigation
Aligned the version bump after merging main #277
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 (Playwright) | |
| on: push | |
| permissions: | |
| contents: read | |
| jobs: | |
| chromatic-playwright: | |
| name: Run Chromatic (Playwright) | |
| # Dependabot-triggered runs cannot read Actions secrets, so the | |
| # Chromatic project token is unavailable; skip instead of failing. | |
| if: github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install ffmpeg | |
| # Builds the video the tests load in place of the sample file this app used to | |
| # ship with; see tests/fixtures/demoVideo.ts. | |
| run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps | |
| - name: Run Playwright tests | |
| run: npm run test:chromatic | |
| env: | |
| CHROMATIC_STATIC_VERSION: "true" | |
| - name: Run Chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PLAYWRIGHT_PROJECT_TOKEN }} | |
| playwright: true |