Visual Regression Testの導入 #22
Workflow file for this run
This file contains 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: 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 update | |
apt purge -y ttf-unifont | |
apt install fonts-noto-cjk | |
- uses: ./.github/actions/setup | |
- name: Run visual tests | |
run: npm run test:vrt | |
# - name: Upload test result | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: reg-reports | |
# path: .reg/ | |
- uses: ./.github/actions/netlify | |
with: | |
deploy-message: The report of VRT was deployed. | |
publish-dir: .reg/ | |
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} |