Skip to content

Commit

Permalink
Merge pull request #2 from eams1798/frontend_versioning
Browse files Browse the repository at this point in the history
Frontend versioning
  • Loading branch information
eams1798 authored Feb 2, 2024
2 parents 8dbc32b + c19aa9c commit 85252f0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/backend.yaml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/fullstack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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: Test
run: cd backend && yarn start:test && cd ../frontend && yarn test

0 comments on commit 85252f0

Please sign in to comment.