(production) D10 post migration, Feedback mods, MOH updates and D10 Maintenance #43
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
# @file(yaml) | |
# == GITHUB ACTION == | |
# Percy screenshot scripting for Boston.gov | |
# Workflow monitors master branch and is triggered by a Pull Request. | |
# The action is triggered before the code reaches the stage environment, so the workflow compares screenshots taken | |
# from the develop environment. | |
name: Boston.gov Percy Snapshot Regression Testing | |
on: | |
pull_request: | |
branches: [ "production" ] | |
workflow_dispatch: | |
jobs: | |
percy_frontend_test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: checkout percy files | |
uses: Bhacaz/checkout-files@v2 | |
with: | |
files: .github/percy | |
branch: master | |
- name: Setup Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install Percy CLI | |
run: npm install --save-dev @percy/cli | |
- name: Compare Frontend Snapshots | |
run: npx @percy/cli snapshot --config "$GITHUB_WORKSPACE/.github/percy/percy_config.yml" "$GITHUB_WORKSPACE/.github/percy/snapshot_config_stage.yml" | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_STAGE }} |