|
|
@ -52,7 +52,7 @@ jobs: |
|
|
|
npm run start:web-v2 |
|
|
|
npm run start:web-v2 |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress-v2/integration/test/restTableOps.js" |
|
|
|
spec: "./scripts/cypress-v2/integration/test/restTableOps.js" |
|
|
|
wait-on: "http://localhost:8080" |
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/@vite/client" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress-v2/cypress.json |
|
|
|
config-file: scripts/cypress-v2/cypress.json |
|
|
|
- name: Upload screenshots |
|
|
|
- name: Upload screenshots |
|
|
@ -62,138 +62,138 @@ jobs: |
|
|
|
name: cypress-restTableOps-run-cache-snapshots |
|
|
|
name: cypress-restTableOps-run-cache-snapshots |
|
|
|
path: scripts/cypress-v2/screenshots |
|
|
|
path: scripts/cypress-v2/screenshots |
|
|
|
retention-days: 2 |
|
|
|
retention-days: 2 |
|
|
|
cypress-restViews-run-cache: |
|
|
|
# cypress-restViews-run-cache: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
# steps: |
|
|
|
- name: Setup Node |
|
|
|
# - name: Setup Node |
|
|
|
uses: actions/setup-node@v1 |
|
|
|
# uses: actions/setup-node@v1 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
node-version: 16.15.0 |
|
|
|
# node-version: 16.15.0 |
|
|
|
- name: Checkout |
|
|
|
# - name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
# uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
fetch-depth: 0 |
|
|
|
# fetch-depth: 0 |
|
|
|
- name: Cache node modules |
|
|
|
# - name: Cache node modules |
|
|
|
uses: actions/cache@v2 |
|
|
|
# uses: actions/cache@v2 |
|
|
|
env: |
|
|
|
# env: |
|
|
|
cache-name: cache-node-modules |
|
|
|
# cache-name: cache-node-modules |
|
|
|
|
|
|
|
# |
|
|
|
with: |
|
|
|
# with: |
|
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
# # npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
path: ~/.npm |
|
|
|
# path: ~/.npm |
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
restore-keys: | |
|
|
|
# restore-keys: | |
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
# ${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
${{ runner.os }}-build- |
|
|
|
# ${{ runner.os }}-build- |
|
|
|
${{ 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: Cypress run |
|
|
|
# - name: Cypress run |
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
# uses: cypress-io/github-action@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
start: | |
|
|
|
# start: | |
|
|
|
npm run start:api:cache |
|
|
|
# npm run start:api:cache |
|
|
|
npm run start:web-v2 |
|
|
|
# npm run start:web-v2 |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress-v2/integration/test/restViews.js" |
|
|
|
# spec: "./scripts/cypress-v2/integration/test/restViews.js" |
|
|
|
wait-on: "http://localhost:8080" |
|
|
|
# wait-on: "http://localhost:8080" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
# wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress-v2/cypress.json |
|
|
|
# config-file: scripts/cypress-v2/cypress.json |
|
|
|
- name: Upload screenshots |
|
|
|
# - name: Upload screenshots |
|
|
|
if: always() |
|
|
|
# if: always() |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
# uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
name: cypress-restViews-run-cache-snapshots |
|
|
|
# name: cypress-restViews-run-cache-snapshots |
|
|
|
path: scripts/cypress-v2/screenshots |
|
|
|
# path: scripts/cypress-v2/screenshots |
|
|
|
retention-days: 2 |
|
|
|
# retention-days: 2 |
|
|
|
cypress-restRoles-run-cache: |
|
|
|
# cypress-restRoles-run-cache: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
# steps: |
|
|
|
- name: Setup Node |
|
|
|
# - name: Setup Node |
|
|
|
uses: actions/setup-node@v1 |
|
|
|
# uses: actions/setup-node@v1 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
node-version: 16.15.0 |
|
|
|
# node-version: 16.15.0 |
|
|
|
- name: Checkout |
|
|
|
# - name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
# uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
fetch-depth: 0 |
|
|
|
# fetch-depth: 0 |
|
|
|
- name: Cache node modules |
|
|
|
# - name: Cache node modules |
|
|
|
uses: actions/cache@v2 |
|
|
|
# uses: actions/cache@v2 |
|
|
|
env: |
|
|
|
# env: |
|
|
|
cache-name: cache-node-modules |
|
|
|
# cache-name: cache-node-modules |
|
|
|
|
|
|
|
# |
|
|
|
with: |
|
|
|
# with: |
|
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
# # npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
path: ~/.npm |
|
|
|
# path: ~/.npm |
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
restore-keys: | |
|
|
|
# restore-keys: | |
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
# ${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
${{ runner.os }}-build- |
|
|
|
# ${{ runner.os }}-build- |
|
|
|
${{ 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: Cypress run |
|
|
|
# - name: Cypress run |
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
# uses: cypress-io/github-action@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
start: | |
|
|
|
# start: | |
|
|
|
npm run start:api:cache |
|
|
|
# npm run start:api:cache |
|
|
|
npm run start:web-v2 |
|
|
|
# npm run start:web-v2 |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress-v2/integration/test/restRoles.js" |
|
|
|
# spec: "./scripts/cypress-v2/integration/test/restRoles.js" |
|
|
|
wait-on: "http://localhost:8080" |
|
|
|
# wait-on: "http://localhost:8080" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
# wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress-v2/cypress.json |
|
|
|
# config-file: scripts/cypress-v2/cypress.json |
|
|
|
- name: Upload screenshots |
|
|
|
# - name: Upload screenshots |
|
|
|
if: always() |
|
|
|
# if: always() |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
# uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
name: cypress-restRoles-run-cache-snapshots |
|
|
|
# name: cypress-restRoles-run-cache-snapshots |
|
|
|
path: scripts/cypress-v2/screenshots |
|
|
|
# path: scripts/cypress-v2/screenshots |
|
|
|
retention-days: 2 |
|
|
|
# retention-days: 2 |
|
|
|
cypress-restMisc-run-cache: |
|
|
|
# cypress-restMisc-run-cache: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
# steps: |
|
|
|
- name: Setup Node |
|
|
|
# - name: Setup Node |
|
|
|
uses: actions/setup-node@v1 |
|
|
|
# uses: actions/setup-node@v1 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
node-version: 16.15.0 |
|
|
|
# node-version: 16.15.0 |
|
|
|
- name: Checkout |
|
|
|
# - name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
# uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
fetch-depth: 0 |
|
|
|
# fetch-depth: 0 |
|
|
|
- name: Cache node modules |
|
|
|
# - name: Cache node modules |
|
|
|
uses: actions/cache@v2 |
|
|
|
# uses: actions/cache@v2 |
|
|
|
env: |
|
|
|
# env: |
|
|
|
cache-name: cache-node-modules |
|
|
|
# cache-name: cache-node-modules |
|
|
|
|
|
|
|
# |
|
|
|
with: |
|
|
|
# with: |
|
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
# # npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
path: ~/.npm |
|
|
|
# path: ~/.npm |
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
restore-keys: | |
|
|
|
# restore-keys: | |
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
# ${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
${{ runner.os }}-build- |
|
|
|
# ${{ runner.os }}-build- |
|
|
|
${{ 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: Cypress run |
|
|
|
# - name: Cypress run |
|
|
|
uses: cypress-io/github-action@v2 |
|
|
|
# uses: cypress-io/github-action@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
start: | |
|
|
|
# start: | |
|
|
|
npm run start:api:cache |
|
|
|
# npm run start:api:cache |
|
|
|
npm run start:web-v2 |
|
|
|
# npm run start:web-v2 |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress-v2/integration/test/restMisc.js" |
|
|
|
# spec: "./scripts/cypress-v2/integration/test/restMisc.js" |
|
|
|
wait-on: "http://localhost:8080" |
|
|
|
# wait-on: "http://localhost:8080" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
# wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress-v2/cypress.json |
|
|
|
# config-file: scripts/cypress-v2/cypress.json |
|
|
|
- name: Upload screenshots |
|
|
|
# - name: Upload screenshots |
|
|
|
if: always() |
|
|
|
# if: always() |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
# uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
# with: |
|
|
|
name: cypress-restMisc-run-cache-snapshots |
|
|
|
# name: cypress-restMisc-run-cache-snapshots |
|
|
|
path: scripts/cypress-v2/screenshots |
|
|
|
# path: scripts/cypress-v2/screenshots |
|
|
|
retention-days: 2 |
|
|
|
# retention-days: 2 |
|
|
|
# cypress-xcdb-restTableOps-run-cache: |
|
|
|
# cypress-xcdb-restTableOps-run-cache: |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
# steps: |
|
|
|
# steps: |
|
|
|