mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 06:45:45 +00:00
[test] cypress: 8x parallel execution
Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
227
.github/workflows/ci-cd.yml
vendored
227
.github/workflows/ci-cd.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
cypress-rest--run:
|
||||
cypress-restTableOps-run:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -41,11 +41,83 @@ jobs:
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/masterSuiteRest.js"
|
||||
spec: "./scripts/cypress/integration/test/restTableOps.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress.json
|
||||
cypress-graphql-run:
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-restViews-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/restViews.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-restRoles-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/restRoles.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-restMisc-run:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -76,10 +148,153 @@ jobs:
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/masterSuiteGql.js"
|
||||
spec: "./scripts/cypress/integration/test/restMisc.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress.json
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-gqlTableOps-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/gqlTableOps.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-gqlViews-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/gqlViews.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-gqlRoles-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/gqlRoles.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
cypress-gqlMisc-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: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
||||
with:
|
||||
# npm cache files are stored in `~/.npm` on Linux/macOS
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Cypress run
|
||||
if: ${{ env.CHANGED == 'OK' }}
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api
|
||||
npm run start:web
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress/integration/test/gqlMisc.js"
|
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress/cypress.json
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user