Browse Source

chore: Github action - cypress

Added separate docker-compose and updated cypress job

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/306/head
Pranav C 3 years ago committed by Pranav C
parent
commit
f8c8e934f4
  1. 22
      .github/workflows/node.yml
  2. 15
      docker-compose-cypress.yml

22
.github/workflows/node.yml

@ -10,17 +10,17 @@ on:
branches: [ master ]
jobs:
# cypress-run:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Cypress run
# uses: cypress-io/github-action@v2
# with:
# start: cd ./packages/nocodb/ && docker-compose run --service-ports -d xc-cypress-test ; sleep 60 ; ../..;
# wait-on: 'http://localhost:8080/dashboard'
# wait-on-timeout: 1200
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: docker-compose -f ./docker-compose-cypress.yml up
wait-on: 'http://localhost:8080/dashboard'
wait-on-timeout: 240
docker:
runs-on: ubuntu-latest

15
docker-compose-cypress.yml

@ -0,0 +1,15 @@
version: "3.5"
services:
xc-cypress-test:
image: node:12.22.1-slim
ports:
- 8080:8080
volumes:
- ./packages/nocodb:/home/app
command:
- /bin/bash
- -c
- |
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
cd /home/app/ && npm i && npm run run
Loading…
Cancel
Save