Browse Source

chore: CI/CD test suite re-configuration

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/765/head 0.82.0
Raju Udava 3 years ago
parent
commit
0a4a50861f
  1. 124
      .github/workflows/ci-cd.yml

124
.github/workflows/ci-cd.yml

@ -108,37 +108,37 @@ jobs:
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
config-file: scripts/cypress/cypress.json
cypress-restMisc-run:
runs-on: ubuntu-20.04
steps:
- 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: Cypress run
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
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
# cypress-restMisc-run:
# runs-on: ubuntu-20.04
# steps:
# - 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: Cypress run
# uses: cypress-io/github-action@v2
# with:
# start: |
# npm run start:api
# 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
cypress-gqlTableOps-run:
runs-on: ubuntu-20.04
steps:
@ -235,37 +235,37 @@ jobs:
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
config-file: scripts/cypress/cypress.json
cypress-gqlMisc-run:
runs-on: ubuntu-20.04
steps:
- 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: Cypress run
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
spec: "./scripts/cypress/integration/test/gqlMisc.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
config-file: scripts/cypress/cypress.json
# cypress-gqlMisc-run:
# runs-on: ubuntu-20.04
# steps:
# - 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: Cypress run
# uses: cypress-io/github-action@v2
# with:
# start: |
# npm run start:api
# npm run start:web
# docker-compose -f ./scripts/docker-compose-cypress.yml up -d
# spec: "./scripts/cypress/integration/test/gqlMisc.js"
# wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
# wait-on-timeout: 1200
# config-file: scripts/cypress/cypress.json
docker:
runs-on: ubuntu-latest
steps:

Loading…
Cancel
Save