Skip to content

fix: command script for ssh execution (#81) #206

fix: command script for ssh execution (#81)

fix: command script for ssh execution (#81) #206

name: Cypress Test
on: [push]
env:
VITE_SESSION_SECRET: ${{ secrets.VITE_SESSION_SECRET }}
NODE_ENV: dev
jobs:
electron-run:
runs-on: ubuntu-latest
steps:
- name: Checkout backend
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and deploy backend
working-directory: api
run: |
python -m ensurepip --default-pip
pip install -r requirements.txt
uvicorn app:app --port 9090 & bash -c 'while ! curl -s http://localhost:9090 > /dev/null; do sleep 1; done'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- name: Checkout frontend
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v5
with:
working-directory: client
build: npm run build
start: npm run preview
- name: Upload Cypress electron-run video artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Cypress video
path: /home/runner/work/substrait-fiddle/substrait-fiddle/client/cypress/videos/shareable.cy.js.mp4
chrome-run:
runs-on: ubuntu-latest
steps:
- name: Checkout backend
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and deploy backend
working-directory: api
run: |
python -m ensurepip --default-pip
pip install -r requirements.txt
uvicorn app:app --port 9090 & bash -c 'while ! curl -s http://localhost:9090 > /dev/null; do sleep 1; done'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- name: Checkout frontend
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v5
with:
working-directory: client
build: npm run build
start: npm run preview
browser: chrome
edge-run:
runs-on: ubuntu-latest
steps:
- name: Checkout backend
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and deploy backend
working-directory: api
run: |
python -m ensurepip --default-pip
pip install -r requirements.txt
uvicorn app:app --port 9090 & bash -c 'while ! curl -s http://localhost:9090 > /dev/null; do sleep 1; done'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- name: Checkout frontend
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v5
with:
working-directory: client
build: npm run build
start: npm run preview
browser: edge