Skip to content

Commit

Permalink
ci: add build workflow for client
Browse files Browse the repository at this point in the history
- Implemented a GitHub Actions workflow for building the client application.
- Ensures that changes to the client are validated through automated builds.
  • Loading branch information
Fingertips18 committed Jan 18, 2025
1 parent c7133ce commit ab33cf4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/client-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Client - Build

on:
pull_request:
branches:
- develop
workflow_dispatch:

jobs:
build:
name: Build Application
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Dependencies
run: |
cd client
npm ci --cache .npm --prefer-offline
- name: Run Build
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: backend-app
path: app
2 changes: 1 addition & 1 deletion .github/workflows/client-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
cd client
npm install
npm ci --cache .npm --prefer-offline
- name: Run vitest
run: |
Expand Down

0 comments on commit ab33cf4

Please sign in to comment.