|
|
|
@ -9,24 +9,24 @@ on:
|
|
|
|
|
branches: [ master ] |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
# cypress-run: |
|
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
|
# steps: |
|
|
|
|
# - name: Checkout |
|
|
|
|
# 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: Cypress run |
|
|
|
|
# if: ${{ env.CHANGED == 'OK' }} |
|
|
|
|
# uses: cypress-io/github-action@v2 |
|
|
|
|
# with: |
|
|
|
|
# start: docker-compose -f ./docker-compose-cypress.yml up -d |
|
|
|
|
# wait-on: 'http://localhost:3000' |
|
|
|
|
# wait-on-timeout: 900 |
|
|
|
|
cypress-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Checkout |
|
|
|
|
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: Cypress run |
|
|
|
|
if: ${{ env.CHANGED == 'OK' }} |
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: docker-compose -f ./docker-compose-cypress.yml up -d |
|
|
|
|
wait-on: 'http://localhost:3000' |
|
|
|
|
wait-on-timeout: 900 |
|
|
|
|
docker: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|