-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(percy): run pixel tests on live otp2 server
- Loading branch information
1 parent
49c8400
commit fe46e6d
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Percy OTP2 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test-build-release: | ||
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: Download OTP2 config file | ||
run: curl $PERCY_OTP2_CONFIG_URL --output /tmp/otp2config.yml | ||
env: | ||
PERCY_OTP2_CONFIG_URL: ${{ secrets.PERCY_OTP2_CONFIG_URL }} | ||
- 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/otp2config.yml |
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