|
|
|
@ -4,15 +4,14 @@
|
|
|
|
|
name: "CI/CD" |
|
|
|
|
on: |
|
|
|
|
push: |
|
|
|
|
branches-ignore: |
|
|
|
|
- master |
|
|
|
|
branches: [master, develop, cypress] |
|
|
|
|
paths: |
|
|
|
|
- "packages/nc-gui/**" |
|
|
|
|
- "scripts/cypress/**" |
|
|
|
|
- "packages/nocodb/**" |
|
|
|
|
- ".github/workflows/ci-cd.yml" |
|
|
|
|
pull_request: |
|
|
|
|
branches: [develop] |
|
|
|
|
branches: [master, develop] |
|
|
|
|
paths: |
|
|
|
|
- "packages/nc-gui/**" |
|
|
|
|
- "scripts/cypress/**" |
|
|
|
@ -20,7 +19,7 @@ on:
|
|
|
|
|
- ".github/workflows/ci-cd.yml" |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
cypress-pg-restTableOps-run: |
|
|
|
|
cypress-pg-restTableOps-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -50,7 +49,8 @@ jobs:
|
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: | |
|
|
|
|
npm run start:api |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/pg-restTableOps.js" |
|
|
|
@ -61,9 +61,9 @@ jobs:
|
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-pg-restViews-run: |
|
|
|
|
cypress-pg-restViews-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -93,7 +93,8 @@ jobs:
|
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: | |
|
|
|
|
npm run start:api |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/pg-restViews.js" |
|
|
|
@ -104,9 +105,9 @@ jobs:
|
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-pg-restRoles-run: |
|
|
|
|
cypress-pg-restRoles-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -136,7 +137,8 @@ jobs:
|
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: | |
|
|
|
|
npm run start:api |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/pg-restRoles.js" |
|
|
|
@ -147,9 +149,9 @@ jobs:
|
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-pg-restMisc-run: |
|
|
|
|
cypress-pg-restMisc-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -179,7 +181,8 @@ jobs:
|
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: | |
|
|
|
|
npm run start:api |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/pg-restMisc.js" |
|
|
|
@ -190,9 +193,9 @@ jobs:
|
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-restTableOps-run: |
|
|
|
|
cypress-restTableOps-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -222,7 +225,8 @@ jobs:
|
|
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
|
with: |
|
|
|
|
start: | |
|
|
|
|
npm run start:api |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/restTableOps.js" |
|
|
|
@ -233,9 +237,9 @@ jobs:
|
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-restViews-run: |
|
|
|
|
cypress-restViews-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -259,14 +263,14 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/restViews.js" |
|
|
|
@ -276,10 +280,10 @@ jobs:
|
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restViews-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-restRoles-run: |
|
|
|
|
cypress-restRoles-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -303,14 +307,14 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/restRoles.js" |
|
|
|
@ -320,10 +324,10 @@ jobs:
|
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restRoles-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-restMisc-run: |
|
|
|
|
cypress-restMisc-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -347,14 +351,14 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/restMisc.js" |
|
|
|
@ -364,181 +368,10 @@ jobs:
|
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: restMisc-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-restTableOps-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restTableOps.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-restViews-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restViews.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-restViews-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-restRoles-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restRoles.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-restRoles-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-restMisc-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restMisc.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-restMisc-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-gqlTableOps-run: |
|
|
|
|
cypress-xcdb-restTableOps-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -562,27 +395,27 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:xcdb-api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/gqlTableOps.js" |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restTableOps.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: gqlTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-gqlViews-run: |
|
|
|
|
cypress-xcdb-restViews-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -606,27 +439,27 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:xcdb-api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/gqlViews.js" |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restViews.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: gqlViews-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-gqlRoles-run: |
|
|
|
|
cypress-xcdb-restRoles-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -650,27 +483,27 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:xcdb-api:cache |
|
|
|
|
npm run start:web |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
spec: "./scripts/cypress/integration/test/gqlRoles.js" |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restRoles.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: gqlRoles-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-gqlMisc-run: |
|
|
|
|
cypress-xcdb-restMisc-run-cache: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
@ -694,197 +527,25 @@ jobs:
|
|
|
|
|
${{ 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 |
|
|
|
|
npm run build:common |
|
|
|
|
npm run start:xcdb-api:cache |
|
|
|
|
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 |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: gqlMisc-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-gqlTableOps-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-gqlTableOps.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-gqlTableOps-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-gqlViews-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-gqlViews.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-gqlViews-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-gqlRoles-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-gqlRoles.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-gqlRoles-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
retention-days: 2 |
|
|
|
|
cypress-xcdb-gqlMisc-run: |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
steps: |
|
|
|
|
- name: Setup Node |
|
|
|
|
uses: actions/setup-node@v1 |
|
|
|
|
with: |
|
|
|
|
node-version: 14 |
|
|
|
|
- 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 |
|
|
|
|
npm run start:web |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-gqlMisc.js" |
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-restMisc.js" |
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
|
- name: Upload screenshots |
|
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: xcdb-gqlMisc-snapshots |
|
|
|
|
path: scripts/cypress/screenshots |
|
|
|
|
name: restTableOps-snapshots |
|
|
|
|
path: scripts/cypress/videos |
|
|
|
|
retention-days: 2 |
|
|
|
|
docker: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
@ -895,7 +556,6 @@ jobs:
|
|
|
|
|
- name: Check for update |
|
|
|
|
run: | |
|
|
|
|
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nocodb) = nocodb ]] && echo 'OK')" >> $GITHUB_ENV |
|
|
|
|
|
|
|
|
|
- name: Test Mysql REST APIs |
|
|
|
|
if: ${{ env.CHANGED == 'OK' }} |
|
|
|
|
run: cd ./packages/nocodb/ && docker-compose run xc-test-mysql |
|
|
|
|