diff --git a/.github/workflows/percy.yml b/.github/workflows/percy.yml index ab214e980..5dc6abc37 100644 --- a/.github/workflows/percy.yml +++ b/.github/workflows/percy.yml @@ -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