Skip to content

Visual Regression Testの導入 #36

Visual Regression Testの導入

Visual Regression Testの導入 #36

Workflow file for this run

name: Visual Regression Testing
on:
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.1-jammy
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install Japanese fonts
run: |
apt-get update
apt-get purge -y fonts-wqy-zenhei
apt-get install fonts-noto-cjk
- uses: ./.github/actions/setup
- name: Run visual tests
run: npm run test:vrt
- uses: ./.github/actions/netlify
id: netlify
timeout-minutes: 1
with:
publish-dir: ./.reg
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
✅ Please check visual regression testing report
${{ steps.netlify.outputs.deploy_url }}
comment_tag: test-report-vrt