Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: minor improvements #11

chore: minor improvements

chore: minor improvements #11

Workflow file for this run

name: Percy Visual Regression Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
percy:
name: Visual Regression Tests
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: πŸ“¦ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: πŸ“š Install dependencies
run: npm ci
- name: πŸ”¨ Build site
run: npm run build
env:
NODE_ENV: production
- name: πŸ‘οΈ Percy snapshot
run: npx @percy/cli snapshot dist
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_attempt }}
PERCY_PARALLEL_TOTAL: 1
- name: πŸ“Š Upload build artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-output
path: dist/
retention-days: 7