mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 22:36:47 +00:00
35
.github/workflows/ci-cd.yml
vendored
35
.github/workflows/ci-cd.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user