|
|
@ -12,38 +12,38 @@ on: |
|
|
|
- "scripts/cypress/**" |
|
|
|
- "scripts/cypress/**" |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
cypress-restTableOps-run: |
|
|
|
#cypress-restTableOps-run: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
# steps: |
|
|
|
- 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: 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 |
|
|
|
# npm run start:api |
|
|
|
npm run start:web |
|
|
|
# npm run start:web |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress/integration/test/restTableOps.js" |
|
|
|
# spec: "./scripts/cypress/integration/test/restTableOps.js" |
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
# wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
# wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
# config-file: scripts/cypress/cypress.json |
|
|
|
cypress-restViews-run: |
|
|
|
cypress-restViews-run: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
steps: |
|
|
@ -140,38 +140,38 @@ jobs: |
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
cypress-gqlTableOps-run: |
|
|
|
#cypress-gqlTableOps-run: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
# steps: |
|
|
|
- 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: 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 |
|
|
|
# npm run start:api |
|
|
|
npm run start:web |
|
|
|
# npm run start:web |
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
spec: "./scripts/cypress/integration/test/gqlTableOps.js" |
|
|
|
# spec: "./scripts/cypress/integration/test/gqlTableOps.js" |
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
# wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
wait-on-timeout: 1200 |
|
|
|
# wait-on-timeout: 1200 |
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
# config-file: scripts/cypress/cypress.json |
|
|
|
cypress-gqlViews-run: |
|
|
|
cypress-gqlViews-run: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|