Browse Source

Merge pull request #306 from pranavxc/cypress

chore: Github action - cypress
pull/341/head
Pranav C 3 years ago committed by GitHub
parent
commit
b6b290de2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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