Skip to content

#1 Issue 1: [DevOps] Setup Next.js Build Pipeline #1

@elizabetheonoja-art

Description

@elizabetheonoja-art

Description:
We need to verify that the frontend builds correctly on every commit to avoid deploying broken UI code.

Task:
Create a GitHub Actions workflow file at .github/workflows/build.yml.

Implementation Details:

YAML
name: Utility Dashboard Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run build
Acceptance Criteria:

[ ] Workflow installs dependencies.

[ ] npm run build completes without errors.

Priority: Critical
Labels: devops, ci

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions