Skip to content

deploy-ready app and concurrently server starting #5

deploy-ready app and concurrently server starting

deploy-ready app and concurrently server starting #5

Workflow file for this run

name: Fullstack Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
jobs:
backend_deployment:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: cd backend && yarn install
- name: Lint
run: cd backend && yarn lint
- name: Test
run: cd backend && TEST_MONGODB_URI=${{ secrets.TEST_MONGODB_URI }} SECRET=${{ secrets.SECRET }} yarn test
frontend_deployment:
runs-on: ubuntu-20.04
needs:
- backend_deployment
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: cd frontend && yarn install
- name: Lint
run: cd frontend && yarn lint
- name: Build
run: cd frontend && yarn build
- name: Test
run: cd frontend && yarn test
- name: Test e2e
uses: cypress-io/github-action@v5
with:
command: cd frontend && yarn test:e2e
start: cd backend && yarn start:cypress
wait-on: http://localhost:5000
browser: chrome
record: true
config-file: cypress.json