Browse Source

test/cypress: disable ci-cd screenshot upload

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/1124/head
Raju Udava 3 years ago
parent
commit
013eef9053
  1. 99
      .github/workflows/ci-cd.yml
  2. 1
      scripts/cypress/integration/common/6b_downloadCsv.js

99
.github/workflows/ci-cd.yml

@ -4,13 +4,14 @@
name: "CI/CD" name: "CI/CD"
on: on:
push: push:
branches: [master, cypress]
paths: paths:
- "packages/nc-gui/**" - "packages/nc-gui/**"
- "scripts/cypress/**" - "scripts/cypress/**"
- "packages/nocodb/**" - "packages/nocodb/**"
- ".github/workflows/ci-cd.yml" - ".github/workflows/ci-cd.yml"
pull_request: pull_request:
branches: [master, develop] branches: [master]
paths: paths:
- "packages/nc-gui/**" - "packages/nc-gui/**"
- "scripts/cypress/**" - "scripts/cypress/**"
@ -44,12 +45,6 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -88,12 +83,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -132,12 +121,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -176,12 +159,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -219,12 +196,6 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -263,12 +234,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -307,12 +272,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -351,12 +310,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -395,12 +348,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -439,12 +386,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -483,12 +424,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -527,12 +462,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -571,12 +500,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -615,12 +538,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -659,12 +576,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
@ -703,12 +614,6 @@ jobs:
- name: Set env - name: Set env
run: echo "NODE_ENV=test" >> $GITHUB_ENV run: echo "NODE_ENV=test" >> $GITHUB_ENV
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:

1
scripts/cypress/integration/common/6b_downloadCsv.js

@ -13,6 +13,7 @@ export const genTest = (type, xcdb) => {
after(() => { after(() => {
cy.closeTableTab("Country"); cy.closeTableTab("Country");
cy.screenshot('6b-after')
}); });
it("Download verification- base view, default columns", () => { it("Download verification- base view, default columns", () => {

Loading…
Cancel
Save