Skip to content

Merge pull request #349 from uvarov-frontend/fix/347_empty_list_of_ye… #210

Merge pull request #349 from uvarov-frontend/fix/347_empty_list_of_ye…

Merge pull request #349 from uvarov-frontend/fix/347_empty_list_of_ye… #210

Workflow file for this run

name: Testing and deploy
on:
push:
branches:
- main
jobs:
cypress:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup npm package
run: npm install
- name: Testing
uses: cypress-io/github-action@v6
with:
start: npm run dev
deploy:
runs-on: ubuntu-latest
needs: cypress
steps:
- uses: actions/checkout@v4
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.KEY }}
source: '.'
target: ${{ secrets.TARGET }}
- name: Build app
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.KEY }}
script: |
cd ${{ secrets.TARGET }}
yarn install
yarn package:build