Cypress correction (#689)

* chore(cypress): cypress test setup
This commit is contained in:
Pranav C
2021-10-22 15:32:50 +05:30
committed by GitHub
parent ec0593b1f5
commit 0158cddf8a
8 changed files with 168 additions and 672 deletions

View File

@@ -9,24 +9,31 @@ on:
branches: [ master ]
jobs:
# cypress-run:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
cypress-run:
runs-on: ubuntu-20.04
strategy:
matrix:
spec: ['masterSuiteRest', 'masterSuiteGql']
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
- 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
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./docker-compose-cypress.yml up -d
spec: 'cypress/integration/test/${{ matrix.spec }}.js'
wait-on: 'http://localhost:8080, http://localhost:3000/_nuxt/runtime.js'
wait-on-timeout: 1200
docker:
runs-on: ubuntu-latest
steps: