mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 19:16:47 +00:00
test: CI-CD enable suite-4 (misc) for xcdb & pg
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
177
.github/workflows/ci-cd-v2.yml
vendored
177
.github/workflows/ci-cd-v2.yml
vendored
@@ -326,50 +326,50 @@ jobs:
|
||||
# name: cypress-xcdb-restRoles-run-cache-snapshots
|
||||
# path: scripts/cypress-v2/screenshots
|
||||
# retention-days: 2
|
||||
# cypress-xcdb-restMisc-run-cache:
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - name: Setup Node
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 16.15.0
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# - 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: Set env
|
||||
# run: echo "NODE_ENV=test" >> $GITHUB_ENV
|
||||
# - name: Cypress run
|
||||
# uses: cypress-io/github-action@v2
|
||||
# with:
|
||||
# start: |
|
||||
# npm run start:xcdb-api:cache
|
||||
# npm run start:web-v2
|
||||
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
# spec: "./scripts/cypress-v2/integration/test/xcdb-restMisc.js"
|
||||
# wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/entry.mjs"
|
||||
# wait-on-timeout: 1200
|
||||
# config-file: scripts/cypress-v2/cypress.json
|
||||
# - name: Upload screenshots
|
||||
# if: always()
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: cypress-xcdb-restMisc-run-cache-snapshots
|
||||
# path: scripts/cypress-v2/screenshots
|
||||
# retention-days: 2
|
||||
cypress-xcdb-restMisc-run-cache:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.15.0
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- 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: Set env
|
||||
run: echo "NODE_ENV=test" >> $GITHUB_ENV
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:xcdb-api:cache
|
||||
npm run start:web-v2
|
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
|
||||
spec: "./scripts/cypress-v2/integration/test/xcdb-restMisc.js"
|
||||
wait-on: "http://localhost:8080"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress-v2/cypress.json
|
||||
- name: Upload screenshots
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: cypress-xcdb-restMisc-run-cache-snapshots
|
||||
path: scripts/cypress-v2/screenshots
|
||||
retention-days: 2
|
||||
# cy-quick-sqlite:
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
@@ -591,51 +591,50 @@ jobs:
|
||||
# name: cypress-pg-restRoles-run-cache-snapshots
|
||||
# path: scripts/cypress-v2/screenshots
|
||||
# retention-days: 2
|
||||
# cypress-pg-restMisc-run-cache:
|
||||
# runs-on: ubuntu-20.04
|
||||
# steps:
|
||||
# - name: Setup Node
|
||||
# uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 16.15.0
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# - 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: Set env
|
||||
# run: echo "NODE_ENV=test" >> $GITHUB_ENV
|
||||
# - name: Cypress run
|
||||
# uses: cypress-io/github-action@v2
|
||||
# with:
|
||||
# start: |
|
||||
# npm run start:api:cache
|
||||
# npm run start:web-v2
|
||||
# docker-compose -f ./scripts/cypress-v2/docker-compose-pg.yml up -d
|
||||
# spec: "./scripts/cypress-v2/integration/test/pg-restMisc.js"
|
||||
# wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/entry.mjs"
|
||||
# wait-on-timeout: 1200
|
||||
# config-file: scripts/cypress-v2/cypress.json
|
||||
# - name: Upload screenshots
|
||||
# if: always()
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: cypress-pg-restMisc-run-cache-snapshots
|
||||
# path: scripts/cypress-v2/screenshots
|
||||
# retention-days: 2
|
||||
#
|
||||
cypress-pg-restMisc-run-cache:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16.15.0
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- 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: Set env
|
||||
run: echo "NODE_ENV=test" >> $GITHUB_ENV
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
start: |
|
||||
npm run start:api:cache
|
||||
npm run start:web-v2
|
||||
docker-compose -f ./scripts/cypress-v2/docker-compose-pg.yml up -d
|
||||
spec: "./scripts/cypress-v2/integration/test/pg-restMisc.js"
|
||||
wait-on: "http://localhost:8080"
|
||||
wait-on-timeout: 1200
|
||||
config-file: scripts/cypress-v2/cypress.json
|
||||
- name: Upload screenshots
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: cypress-pg-restMisc-run-cache-snapshots
|
||||
path: scripts/cypress-v2/screenshots
|
||||
retention-days: 2
|
||||
cy-quick-sqlite:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user