Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfrosh committed Apr 15, 2024
1 parent 32ae521 commit b1a2ce2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- uses: actions/checkout@v4

# Setup Node
- name: Use Node.js ${{ matrix.node-version }} for frontend
uses: actions/setup-node@v4
- name: Use Node.js ${{ matrix.node-version }} for frontend
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
108 changes: 54 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,65 +16,65 @@ jobs:

steps:
# Checkout project
- uses: actions/checkout@v4
- uses: actions/checkout@v4

# Setup Node
- name: Use Node.js ${{ matrix.node-version }} for frontend
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Setup Node
- name: Use Node.js ${{ matrix.node-version }} for frontend
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# FRONTEND #
# Install Packages
- name: Install Dependencies for Frontend
run: npm ci
working-directory: frontend

# Include whenver tests are added
# - name: npm run test for frontend
# run: npm run test --if-present
# working-directory: frontend

- name: npm run build for frontend
run: npm run build
working-directory: frontend

# working-directory: frontend
# with:
# node-version: '18.x'
# app_location: "/frontend"
# output_location: "build"

# Copy build directory to backend
- name: Copy frontend build to backend
run: cp -R ./frontend/build/* ./backend/__BUILD/

# BACKEND #
# Install Packages
- name: Install Dependencies for Backend
run: |
npm ci
working-directory: ./backend

# Run Jest tests
- name: Run Tests
working-directory: ./backend
run: npm run test --if-present

# Compile TS
- name: Compile TS
working-directory: ./backend
run: npm run compile

- name: Zip artifact for deployment
run: zip release.zip ./* -r
working-directory: ./backend

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: node-app
path: backend/release.zip
run: npm ci
working-directory: frontend

# Include whenver tests are added
# - name: npm run test for frontend
# run: npm run test --if-present
# working-directory: frontend

- name: npm run build for frontend
run: npm run build
working-directory: frontend

# working-directory: frontend
# with:
# node-version: '18.x'
# app_location: "/frontend"
# output_location: "build"

# Copy build directory to backend
- name: Copy frontend build to backend
run: cp -R ./frontend/build/* ./backend/__BUILD/

# BACKEND #
# Install Packages
- name: Install Dependencies for Backend
run: |
npm ci
working-directory: ./backend

# Run Jest tests
- name: Run Tests
working-directory: ./backend
run: npm run test --if-present

# Compile TS
- name: Compile TS
working-directory: ./backend
run: npm run compile

- name: Zip artifact for deployment
run: zip release.zip ./* -r
working-directory: ./backend

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: node-app
path: backend/release.zip

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b1a2ce2

Please sign in to comment.