Skip to content

Percy daily ALL SUITES #208

Percy daily ALL SUITES

Percy daily ALL SUITES #208

Workflow file for this run

name: Percy daily ALL SUITES
on:
schedule:
- cron: "0 7 * * *" #every morning at 7 AM UTC
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "cron"
percy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
suite: [tools-page,dollar-street,gapminder-org]
include:
- suite: tools-page
token: PERCY_TOKEN_TOOLS_PAGE
- suite: dollar-street
token: PERCY_TOKEN_DOLLAR_STREET
- suite: gapminder-org
token: PERCY_TOKEN_GAPMINDER_ORG
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: npm install
run: |
npm install
mkdir pixDiff && mkdir pixDiff/diff && mkdir pixDiff/baseline
- name: install chrome and chromedriver
env:
CHROME_VERSION: ${{vars.CHROME_VERSION}}
run: |
npm i chromedriver@`echo $CHROME_VERSION | sed 's/\..*//'` --no-save
wget "https://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb"
sudo dpkg -i "google-chrome-stable_${CHROME_VERSION}_amd64.deb"
- name: VISUAL TESTS FOR ${{ matrix.suite }}
env:
PERCY_TOKEN: ${{ secrets[matrix.token] }}
GOOGLE_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_EMAIL }}
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}
PERCY_BRANCH: daily
PERCY_TARGET_BRANCH: prod
run: npm run percy:${{ matrix.suite }}