name: Percy Visual Testing

on:
    pull_request_target:

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                node-version: [12.x]
        steps:
            - uses: actions/checkout@v2.3.5
            - name: Use Node.js ${{ matrix.node-version }}
              uses: actions/setup-node@v2.4.1
              with:
                  node-version: ${{ matrix.node-version }}
            - name: generate HTML
              run: |
                  npm ci
                  gulp
            - name: run percy
              run: |
                  npx percy snapshot dist/
              env:
                  CI: true
                  PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

name: Percy Visual Testing

on: [push]

jobs:
    build:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                node-version: [12.x]
        steps:
            - uses: actions/checkout@v2.3.5
            - name: Use Node.js ${{ matrix.node-version }}
              uses: actions/setup-node@v2.4.1
              with:
                  node-version: ${{ matrix.node-version }}
            - name: generate HTML
              run: |
                  npm ci
                  gulp
            - name: run percy
              run: |
                  npx percy snapshot dist/
              env:
                  CI: true
                  PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

Revert "Switch Percy to be on pull_request_target"
Revert "Switch Percy to be on pull_request_target"

This reverts commit acc8a1c015d917860a120c696006ad48ddb26c25.
