Browse Source

chore(github-action): trigger cypress test only on nc-gui change

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/693/head
Pranav C 3 years ago
parent
commit
29b245405b
  1. 8
      .github/workflows/ci-cd.yml

8
.github/workflows/ci-cd.yml

@ -19,12 +19,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
# - name: Check for update
# run: |
# echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nc-gui) = nc-gui ]] && echo 'OK')" >> $GITHUB_ENV
- name: Check for update
run: |
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nc-gui) = nc-gui ]] && echo 'OK')" >> $GITHUB_ENV
- name: Cypress run
# if: ${{ env.CHANGED == 'OK' }}
if: ${{ env.CHANGED == 'OK' }}
uses: cypress-io/github-action@v2
with:
start: |

Loading…
Cancel
Save