Closed juhi123 closed 4 years ago
Hey @juhi123! The exec action already runs percy exec
: https://github.com/percy/exec-action/blob/master/src/index.js#L62 so this is creating two builds because percy exec
is being called twice: /usr/local/bin/npx percy exec -- percy exec -- node homepage-snapshot.js
name: Percy Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1.0.0
- name: Install dependencies
working-directory: ./tests/percy
run: npm install
- name: Percy Test
uses: percy/exec-action@v0.3.0
with:
command: "node homepage-snapshot.js"
working-directory: ./tests/percy/tests
verbose: true
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
@Robdel12 Thank you so much :)
Hey
I have been trying to integrate percyScript tests with Github Actions, here is the output of exec-action
My workflow file looks like this:
My homepage-snapshot.js looks like this
Why this is initiating 2 builds, because of 2 build I think getting this issues of "Address is already in use"
Looking forward. Thanks!