Skip to content

Commit

Permalink
refactor(percy): restore otp1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Dec 21, 2022
1 parent bd7d52d commit cb44e53
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@ on:
pull_request:

jobs:
# run-pixel-tests-with-otp1-mock-server:
# runs-on: ubuntu-latest
run-pixel-tests-with-otp1-real-server:
runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2
# with:
# # This allows us to work with the repository during the lint step
# fetch-depth: 2
# - name: Use Node.js 16.x
# uses: actions/setup-node@v1
# with:
# node-version: 16.x
# - name: Install npm packages using cache
# uses: bahmutov/npm-install@v1
# - name: Take Percy Snapshots
# # Move everything from latest commit back to staged
# run: npx percy exec -- npx jest percy/percy.test.js --force-exit
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
# HAR_URL: ${{ secrets.PERCY_HAR_URL }}
steps:
- uses: actions/checkout@v2
with:
# This allows us to work with the repository during the lint step
fetch-depth: 2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
- name: Download OTP1 config file
run: curl $PERCY_OTP1_CONFIG_URL --output /tmp/otp1config.yml
env:
PERCY_OTP1_CONFIG_URL: ${{ secrets.PERCY_OTP1_CONFIG_URL_METRO }}
- name: Take Percy Snapshots
# Move everything from latest commit back to staged
run: npx percy exec -- npx jest percy/percy.test.js --force-exit
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
PERCY_OTP_CONFIG_OVERRIDE: /tmp/otp1config.yml
run-pixel-tests-with-otp2-real-server:
runs-on: ubuntu-latest

Expand Down

0 comments on commit cb44e53

Please sign in to comment.