@ -0,0 +1,670 @@
|
||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node |
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions |
||||
|
||||
name: "CI/CD - Backup" |
||||
on: |
||||
push: |
||||
branches: [develop, cypress] |
||||
paths: |
||||
- "packages/nc-gui/**" |
||||
- "scripts/cypress/**" |
||||
- "packages/nocodb/**" |
||||
- ".github/workflows/ci-cd.yml" |
||||
pull_request: |
||||
branches: [develop] |
||||
paths: |
||||
- "packages/nc-gui/**" |
||||
- "scripts/cypress/**" |
||||
- "packages/nocodb/**" |
||||
- ".github/workflows/ci-cd.yml" |
||||
|
||||
jobs: |
||||
cypress-pg-restTableOps-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 |
||||
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
||||
spec: "./scripts/cypress/integration/test/pg-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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-pg-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-pg-restViews-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 |
||||
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
||||
spec: "./scripts/cypress/integration/test/pg-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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-pg-restViews-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-pg-restRoles-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 |
||||
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
||||
spec: "./scripts/cypress/integration/test/pg-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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-pg-restRoles-run-cache-snapshots |
||||
path: scripts/cypress/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 |
||||
docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d |
||||
spec: "./scripts/cypress/integration/test/pg-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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-pg-restMisc-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-restTableOps-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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-restViews-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 |
||||
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 |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restViews-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-restRoles-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 |
||||
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 |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restRoles-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restMisc-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restTableOps-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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-xcdb-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restViews-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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-xcdb-restViews-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restRoles-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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-xcdb-restRoles-run-cache-snapshots |
||||
path: scripts/cypress/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 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-xcdb-restMisc-run-cache-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cy-quick-sqlite: |
||||
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: | |
||||
cp ./scripts/cypress/fixtures/quickTest/noco_0_91_7.db ./packages/nocodb/noco.db |
||||
npm run start:api:cache |
||||
npm run start:web |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress/integration/test/quickTest.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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cy-quick-sqlite-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
cy-quick-pg: |
||||
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: | |
||||
docker-compose -f ./scripts/cypress/docker-compose-pg-cy-quick.yml up -d |
||||
npm run start:api:cache:pg:cyquick |
||||
npm run start:web |
||||
spec: "./scripts/cypress/integration/test/quickTest.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 |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cy-quick-pg-snapshots |
||||
path: scripts/cypress/screenshots |
||||
retention-days: 2 |
||||
# docker: |
||||
# runs-on: ubuntu-latest |
||||
# steps: |
||||
# - uses: actions/checkout@v2 |
||||
# with: |
||||
# fetch-depth: 0 |
||||
# - 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 |
||||
# - name: Test Mysql GraphQL APIs |
||||
# if: ${{ env.CHANGED == 'OK' }} |
||||
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mysql |
||||
# |
||||
# # - name: Test MSSQL REST APIs |
||||
# # run: cd ./packages/nocodb/ && docker-compose run xc-test-mssql |
||||
# # - name: Test MSSQL GraphQL APIs |
||||
# # run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mssql |
||||
# # |
||||
# - name: Test PostgreSQL REST APIs |
||||
# if: ${{ env.CHANGED == 'OK' }} |
||||
# run: cd ./packages/nocodb/ && docker-compose run xc-test-pg |
||||
# - name: Test PostgreSQL GraphQL APIs |
||||
# if: ${{ env.CHANGED == 'OK' }} |
||||
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-pg |
||||
# |
||||
# - name: Test SQLite3 REST APIs |
||||
# run: cd ./packages/nocodb/ && docker-compose run xc-test-sqlite |
||||
# - name: Test SQLite3 GraphQL APIs |
||||
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-sqlite |
@ -1,637 +0,0 @@
|
||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node |
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions |
||||
|
||||
name: "CI/CD" |
||||
on: |
||||
push: |
||||
branches: [develop] |
||||
paths: |
||||
- "packages/nc-gui-v2/**" |
||||
- "scripts/cypress-v2/**" |
||||
- "packages/nocodb/**" |
||||
- ".github/workflows/ci-cd-v2.yml" |
||||
pull_request: |
||||
branches: [develop] |
||||
paths: |
||||
- "packages/nc-gui-v2/**" |
||||
- "scripts/cypress-v2/**" |
||||
- "packages/nocodb/**" |
||||
- ".github/workflows/ci-cd-v2.yml" |
||||
jobs: |
||||
cypress-restTableOps-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/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/restTableOps.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-restViews-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/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/restViews.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restViews-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-restRoles-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/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/restRoles.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restRoles-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-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/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/restMisc.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cypress-restMisc-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restTableOps-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-v2 |
||||
npm run start:web-v2 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/xcdb-restTableOps.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restViews-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-v2 |
||||
npm run start:web-v2 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/xcdb-restViews.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-restViews-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-xcdb-restRoles-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-v2 |
||||
npm run start:web-v2 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/xcdb-restRoles.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-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-v2 |
||||
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/assets/img/icons/512x512-trans.png" |
||||
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-pg-restTableOps-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-restTableOps.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-restTableOps-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-pg-restViews-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-restViews.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-restViews-run-cache-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cypress-pg-restRoles-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-restRoles.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
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-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/assets/img/icons/512x512-trans.png" |
||||
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: |
||||
- 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: | |
||||
cp ./scripts/cypress-v2/fixtures/quickTest/noco_0_91_7.db ./packages/nocodb/noco.db |
||||
npm run start:api:cache |
||||
npm run start:web-v2 |
||||
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
||||
spec: "./scripts/cypress-v2/integration/test/quickTest.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cy-quick-sqlite-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
||||
cy-quick-pg: |
||||
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: | |
||||
docker-compose -f ./scripts/cypress-v2/docker-compose-pg-cy-quick.yml up -d |
||||
npm run start:api:cache:pg:cyquick |
||||
npm run start:web-v2 |
||||
spec: "./scripts/cypress-v2/integration/test/quickTest.js" |
||||
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/assets/img/icons/512x512-trans.png" |
||||
wait-on-timeout: 1200 |
||||
config-file: scripts/cypress-v2/cypress.json |
||||
- name: Upload screenshots |
||||
if: always() |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: cy-quick-pg-snapshots |
||||
path: scripts/cypress-v2/screenshots |
||||
retention-days: 2 |
@ -1,144 +0,0 @@
|
||||
name: "Release : Docker (v2)" |
||||
|
||||
on: |
||||
# Triggered manually |
||||
workflow_dispatch: |
||||
inputs: |
||||
tag: |
||||
description: "Docker image tag" |
||||
required: true |
||||
targetEnv: |
||||
description: "Target Environment" |
||||
required: true |
||||
type: choice |
||||
options: |
||||
- DEV |
||||
- PROD |
||||
# Triggered by release-nocodb.yml / release-nightly-dev.yml / release-pr.yml |
||||
workflow_call: |
||||
inputs: |
||||
tag: |
||||
description: "Docker image tag" |
||||
required: true |
||||
type: string |
||||
targetEnv: |
||||
description: "Target Environment" |
||||
required: true |
||||
type: string |
||||
isDaily: |
||||
description: "Is it triggered by daily schedule" |
||||
required: false |
||||
type: string |
||||
currentVersion: |
||||
description: "The current NocoDB version" |
||||
required: false |
||||
type: string |
||||
secrets: |
||||
DOCKERHUB_USERNAME: |
||||
required: true |
||||
DOCKERHUB_TOKEN: |
||||
required: true |
||||
|
||||
jobs: |
||||
buildx: |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
working-directory: ./packages/nocodb |
||||
steps: |
||||
- name: Get Docker Repository |
||||
id: get-docker-repository |
||||
run: | |
||||
DOCKER_REPOSITORY=nocodb |
||||
DOCKER_BUILD_TAG=${{ github.event.inputs.tag || inputs.tag }} |
||||
if [[ ${{ github.event.inputs.targetEnv || inputs.targetEnv }} == 'DEV' ]]; then |
||||
if [[ ${{ github.event.inputs.currentVersion || inputs.currentVersion || 'N/A' }} != 'N/A' ]]; then |
||||
DOCKER_BUILD_TAG=${{ github.event.inputs.currentVersion || inputs.currentVersion }}-${{ github.event.inputs.tag || inputs.tag }} |
||||
fi |
||||
if [[ ${{ inputs.isDaily || 'N' }} == 'Y' ]]; then |
||||
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-daily |
||||
else |
||||
DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-timely |
||||
fi |
||||
fi |
||||
echo "::set-output name=DOCKER_REPOSITORY::${DOCKER_REPOSITORY}" |
||||
echo "::set-output name=DOCKER_BUILD_TAG::${DOCKER_BUILD_TAG}" |
||||
echo ${DOCKER_REPOSITORY} |
||||
echo ${DOCKER_BUILD_TAG} |
||||
|
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
ref: ${{ github.ref }} |
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }} |
||||
uses: actions/setup-node@v2 |
||||
with: |
||||
node-version: 16.15.0 |
||||
|
||||
- name: upgrade packages for nightly build or pr build |
||||
if: ${{ github.event.inputs.targetEnv == 'DEV' || inputs.targetEnv == 'DEV' }} |
||||
run: | |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js |
||||
cd packages/nocodb-sdk |
||||
npm install && npm run build |
||||
cd ../.. |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk2.js && |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNcGuiVersion.js && |
||||
cd packages/nc-gui-v2 |
||||
npm install |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} npm run build:copy |
||||
cd ../.. |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNcGui2.js |
||||
|
||||
- uses: bahmutov/npm-install@v1 |
||||
with: |
||||
working-directory: ${{ env.working-directory }} |
||||
|
||||
- name: Build nocodb and docker files |
||||
run: | |
||||
npm run build |
||||
npm run docker:build |
||||
working-directory: ${{ env.working-directory }} |
||||
|
||||
- name: Set up QEMU |
||||
uses: docker/setup-qemu-action@v1 |
||||
|
||||
- name: Set up Docker Buildx |
||||
id: buildx |
||||
uses: docker/setup-buildx-action@v1 |
||||
|
||||
- name: Cache Docker layers |
||||
uses: actions/cache@v2 |
||||
with: |
||||
path: /tmp/.buildx-cache |
||||
key: ${{ runner.os }}-buildx-${{ github.sha }} |
||||
restore-keys: | |
||||
${{ runner.os }}-buildx- |
||||
|
||||
- name: Login to DockerHub |
||||
uses: docker/login-action@v1 |
||||
with: |
||||
username: ${{ secrets.DOCKERHUB_USERNAME }} |
||||
password: ${{ secrets.DOCKERHUB_TOKEN }} |
||||
|
||||
- name: Build and push |
||||
uses: docker/build-push-action@v2 |
||||
with: |
||||
context: ${{ env.working-directory }} |
||||
build-args: NC_VERSION=${{ steps.get-docker-repository.outputs.DOCKER_BUILD_TAG }} |
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7 |
||||
cache-from: type=local,src=/tmp/.buildx-cache |
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new |
||||
push: true |
||||
tags: | |
||||
nocodb/${{ steps.get-docker-repository.outputs.DOCKER_REPOSITORY }}:${{ steps.get-docker-repository.outputs.DOCKER_BUILD_TAG }} |
||||
nocodb/${{ steps.get-docker-repository.outputs.DOCKER_REPOSITORY }}:latest |
||||
|
||||
# Temp fix |
||||
# https://github.com/docker/build-push-action/issues/252 |
||||
# https://github.com/moby/buildkit/issues/1896 |
||||
- name: Move cache |
||||
run: | |
||||
rm -rf /tmp/.buildx-cache |
||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
@ -1,93 +0,0 @@
|
||||
name: "Release : NPM packages (v2)" |
||||
|
||||
on: |
||||
# Triggered manually |
||||
workflow_dispatch: |
||||
inputs: |
||||
tag: |
||||
description: "Tag" |
||||
required: true |
||||
targetEnv: |
||||
description: "Target Environment" |
||||
required: true |
||||
type: choice |
||||
options: |
||||
- DEV |
||||
- PROD |
||||
# Triggered by release-nocodb.yml / release-nightly-dev.yml / release-pr.yml |
||||
workflow_call: |
||||
inputs: |
||||
tag: |
||||
description: "Tag" |
||||
required: true |
||||
type: string |
||||
targetEnv: |
||||
description: "Target Environment" |
||||
required: true |
||||
type: string |
||||
secrets: |
||||
NPM_TOKEN: |
||||
required: true |
||||
# GITHUB_TOKEN: |
||||
# required: true |
||||
|
||||
jobs: |
||||
release: |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
working-directory: ./packages/nocodb |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
ref: ${{ github.ref }} |
||||
- name: NPM Setup and Publish with 16.15.0 |
||||
# Setup .npmrc file to publish to npm |
||||
uses: actions/setup-node@v2 |
||||
with: |
||||
node-version: 16.15.0 |
||||
registry-url: 'https://registry.npmjs.org' |
||||
- run: | |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js && |
||||
cd packages/nocodb-sdk && |
||||
npm ci && npm run build && npm publish && |
||||
cd ../.. && |
||||
sleep 60 && |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk2.js && |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNcGuiVersion.js && |
||||
cd packages/nc-gui-v2 && |
||||
npm ci && |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} npm run build:copy:publish && |
||||
cd ../.. && |
||||
sleep 60 && |
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNcGui2.js && cd packages/nocodb && npm install && npm run obfuscate:build:publish |
||||
env: |
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
||||
- name: Create Pull Request |
||||
if: ${{ github.event.inputs.targetEnv == 'PROD' || inputs.targetEnv == 'PROD' }} |
||||
id: cpr |
||||
uses: peter-evans/create-pull-request@v3 |
||||
env: |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
with: |
||||
# commit-message: Update report |
||||
# committer: GitHub <noreply@github.com> |
||||
# author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |
||||
signoff: true |
||||
branch: 'release/${{ github.event.inputs.tag || inputs.tag }}' |
||||
delete-branch: true |
||||
title: 'Release ${{ github.event.inputs.tag || inputs.tag }}' |
||||
labels: 'Bot: Automerge' |
||||
- name: Check outputs |
||||
if: ${{ github.event.inputs.targetEnv == 'PROD' || inputs.targetEnv == 'PROD' }} |
||||
run: | |
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" |
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
||||
- name: automerge |
||||
if: ${{ github.event.inputs.targetEnv == 'PROD' || inputs.targetEnv == 'PROD' }} |
||||
uses: "pascalgn/automerge-action@v0.14.3" |
||||
env: |
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
||||
PULL_REQUEST: "${{ steps.cpr.outputs.pull-request-number }}" |
||||
MERGE_LABELS: "Bot: Automerge" |
@ -1,126 +0,0 @@
|
||||
name: 'PR Release (v2)' |
||||
|
||||
on: |
||||
pull_request: |
||||
# opened: pull request is created |
||||
# reopened: closed pull request is reopened |
||||
# synchronize: commit(s) pushed to the pull request |
||||
# ready_for_review: non PR release |
||||
types: [opened, reopened, synchronize, ready_for_review] |
||||
paths: |
||||
# - "packages/nocodb-sdk/**" |
||||
- "packages/nc-gui-v2/**" |
||||
# - "packages/nc-plugin/**" |
||||
# - "packages/nocodb/**" |
||||
jobs: |
||||
# enrich tag for pr release |
||||
set-tag: |
||||
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
runs-on: 'ubuntu-latest' |
||||
steps: |
||||
- name: set-tag |
||||
id: tag-step |
||||
run: | |
||||
# Get current date |
||||
CURRENT_DATE=$(date +"%Y%m%d") |
||||
CURRENT_TIME=$(date +"%H%M") |
||||
# Get current PR number |
||||
PR_NUMBER=${{github.event.number}} |
||||
# Get current version |
||||
CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) |
||||
# Construct tag name |
||||
TAG_NAME=pr-${PR_NUMBER}-${CURRENT_DATE}-${CURRENT_TIME} |
||||
echo "::set-output name=TARGET_TAG::${TAG_NAME}" |
||||
echo "::set-output name=CURRENT_VERSION::${CURRENT_VERSION}" |
||||
- name: verify-tag |
||||
run: | |
||||
echo ${{ steps.tag-step.outputs.TARGET_TAG }} |
||||
echo ${{ steps.tag-step.outputs.CURRENT_VERSION }} |
||||
outputs: |
||||
target_tag: ${{ steps.tag-step.outputs.TARGET_TAG }} |
||||
current_version: ${{ steps.tag-step.outputs.CURRENT_VERSION }} |
||||
|
||||
# Build, install, publish frontend and backend to npm |
||||
release-npm: |
||||
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
needs: [set-tag] |
||||
uses: ./.github/workflows/release-npm-v2.yml |
||||
with: |
||||
tag: ${{ needs.set-tag.outputs.target_tag }} |
||||
targetEnv: 'DEV' |
||||
secrets: |
||||
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" |
||||
|
||||
# Build docker image and push to docker hub |
||||
release-docker: |
||||
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
needs: [release-npm, set-tag] |
||||
uses: ./.github/workflows/release-docker-v2.yml |
||||
with: |
||||
currentVersion: ${{ needs.set-tag.outputs.current_version }} |
||||
tag: ${{ needs.set-tag.outputs.target_tag }} |
||||
targetEnv: 'DEV' |
||||
isDaily: 'N' |
||||
secrets: |
||||
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" |
||||
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}" |
||||
|
||||
# Build executables and publish to GitHub |
||||
# release-executables: |
||||
# if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
# needs: [set-tag, release-npm] |
||||
# uses: ./.github/workflows/release-timely-executables.yml |
||||
# with: |
||||
# tag: ${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} |
||||
# secrets: |
||||
# NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
||||
|
||||
# Add a comment for PR docker build |
||||
leave-comment: |
||||
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
runs-on: 'ubuntu-latest' |
||||
needs: [release-docker, set-tag] |
||||
steps: |
||||
- uses: peter-evans/commit-comment@v2 |
||||
with: |
||||
body: | |
||||
The PR changes have been deployed. Please run the following command to verify: |
||||
``` |
||||
docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} |
||||
``` |
||||
|
||||
# Add a comment for PR executable build |
||||
# leave-executable-comment: |
||||
# if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} |
||||
# runs-on: 'ubuntu-latest' |
||||
# needs: [release-executables, set-tag] |
||||
# steps: |
||||
# - uses: peter-evans/commit-comment@v2 |
||||
# with: |
||||
# body: | |
||||
# ### Run Executables |
||||
|
||||
# #### MacOS |
||||
|
||||
# ```bash |
||||
# mkdir -p ./${{ needs.set-tag.outputs.current_version }}/${{ needs.set-tag.outputs.target_tag }} && cd "$_" \ |
||||
# && curl http://dl.nocodb.com/${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}/Noco-macos-arm64 -o noco -L \ |
||||
# && chmod +x noco \ |
||||
# && ./noco |
||||
# ``` |
||||
# #### Linux |
||||
|
||||
# ```bash |
||||
# mkdir -p ./${{ needs.set-tag.outputs.current_version }}/${{ needs.set-tag.outputs.target_tag }} && cd "$_" \ |
||||
# && curl http://dl.nocodb.com/${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}/Noco-linux-x64 -o noco -L \ |
||||
# && chmod +x noco \ |
||||
# && ./noco |
||||
# ``` |
||||
# #### Windows |
||||
|
||||
# ```bash |
||||
# iwr http://dl.nocodb.com/${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}/Noco-win-arm64.exe |
||||
# .\Noco-win-arm64.exe |
||||
# ``` |
||||
|
||||
# For executables visit [here](https://github.com/nocodb/nocodb-timely/releases/tag/${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}) |
@ -0,0 +1,90 @@
|
||||
# Created by .ignore support plugin (hsz.mobi) |
||||
### Node template |
||||
# Logs |
||||
/logs |
||||
*.log |
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
|
||||
# Runtime data |
||||
pids |
||||
*.pid |
||||
*.seed |
||||
*.pid.lock |
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover |
||||
lib-cov |
||||
|
||||
# Coverage directory used by tools like istanbul |
||||
coverage |
||||
|
||||
# nyc test coverage |
||||
.nyc_output |
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) |
||||
.grunt |
||||
|
||||
# Bower dependency directory (https://bower.io/) |
||||
bower_components |
||||
|
||||
# node-waf configuration |
||||
.lock-wscript |
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html) |
||||
build/Release |
||||
|
||||
# Dependency directories |
||||
node_modules/ |
||||
jspm_packages/ |
||||
|
||||
# TypeScript v1 declaration files |
||||
typings/ |
||||
|
||||
# Optional npm cache directory |
||||
.npm |
||||
|
||||
# Optional eslint cache |
||||
.eslintcache |
||||
|
||||
# Optional REPL history |
||||
.node_repl_history |
||||
|
||||
# Output of 'npm pack' |
||||
*.tgz |
||||
|
||||
# Yarn Integrity file |
||||
.yarn-integrity |
||||
|
||||
# dotenv environment variables file |
||||
.env |
||||
|
||||
# parcel-bundler cache (https://parceljs.org/) |
||||
.cache |
||||
|
||||
# next.js build output |
||||
.next |
||||
|
||||
# nuxt.js build output |
||||
.nuxt |
||||
|
||||
# Nuxt generate |
||||
dist |
||||
|
||||
# vuepress build output |
||||
.vuepress/dist |
||||
|
||||
# Serverless directories |
||||
.serverless |
||||
|
||||
# IDE / Editor |
||||
.idea |
||||
|
||||
# Service worker |
||||
sw.* |
||||
|
||||
# macOS |
||||
.DS_Store |
||||
|
||||
# Vim swap files |
||||
*.swp |
@ -0,0 +1,66 @@
|
||||
# nc-gui |
||||
|
||||
## Build Setup |
||||
|
||||
```bash |
||||
# install dependencies |
||||
$ npm install |
||||
|
||||
# serve with hot reload at localhost:3000 |
||||
$ npm run dev |
||||
|
||||
# build for production and launch server |
||||
$ npm run build |
||||
$ npm run start |
||||
|
||||
# generate static project |
||||
$ npm run generate |
||||
``` |
||||
|
||||
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org). |
||||
|
||||
|
||||
# APIs required |
||||
|
||||
- DB Operations |
||||
- Table list |
||||
- Column list |
||||
- View list |
||||
- Function list |
||||
- Query execution |
||||
- Trigger, relation list |
||||
- Project Operation |
||||
- API Client Metadata operations |
||||
- Theme options |
||||
- Migration |
||||
- Migration Up |
||||
- Migration Down |
||||
- Migration List |
||||
|
||||
|
||||
- First page |
||||
- With DB URL |
||||
- Get Started(P) - /xc/start : Welcome to NocoDB, Looks like you configured databases. Now it's time to setup an admin user. Or it's time to authenticate via Admin secret. No authentication configured access dashboard. |
||||
- With Auth |
||||
- Admin secret |
||||
- Take Admin Secret(P) - /xc/user/authentication/signup |
||||
- JWT |
||||
- Create Admin User(P) - /xc/user/authentication/signup |
||||
- Without Auth |
||||
- Dashboard(P) - /xc/ |
||||
- Without DB URL |
||||
- Get Started(P) - /xc/start - Welcome to NocoDB, Let's set up a new project by connecting to database. |
||||
- Create Project(P) - - /xc/project/0 |
||||
- Admin secret |
||||
- Take Admin Secret(P) - /xc/user/authentication/signup |
||||
- JWT |
||||
- Create Admin User(P) - /xc/user/authentication/signup |
||||
- Disabled |
||||
- Dashboard(P) - /xc/ |
||||
- With Config |
||||
- Get started(P) - /xc/start - Welcome to NocoDB, Now it's time to setup an admin user. Or it's time to authenticate via Admin secret. No authentication configured access dashboard. |
||||
- Dashboard(P) - /xc/ |
||||
|
||||
|
||||
- Differentiate docker mvc and normal mvc project |
||||
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 241 KiB |
Before Width: | Height: | Size: 188 KiB After Width: | Height: | Size: 188 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |