|
|
@ -473,6 +473,158 @@ 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-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 |
|
|
|
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up -d |
|
|
|
|
|
|
|
spec: "./scripts/cypress/integration/test/xcdb-gqlMisc.js" |
|
|
|
|
|
|
|
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" |
|
|
|
|
|
|
|
wait-on-timeout: 1200 |
|
|
|
|
|
|
|
config-file: scripts/cypress/cypress.json |
|
|
|
docker: |
|
|
|
docker: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|