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 ] branches: [ master ]
jobs: jobs:
# cypress-run: cypress-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
# - name: Cypress run - name: Cypress run
# uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
# with: with:
# start: cd ./packages/nocodb/ && docker-compose run --service-ports -d xc-cypress-test ; sleep 60 ; ../..; start: docker-compose -f ./docker-compose-cypress.yml up
# wait-on: 'http://localhost:8080/dashboard' wait-on: 'http://localhost:8080/dashboard'
# wait-on-timeout: 1200 wait-on-timeout: 240
docker: docker:
runs-on: ubuntu-latest 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