Skip to content

#1 Issue 1: [DevOps] Setup API Test Pipeline #1

@elizabetheonoja-art

Description

@elizabetheonoja-art

Description:
We need automated testing for our Node.js backend to ensure API endpoints are stable.

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

Implementation Details:

YAML
name: Utility API Tests

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

jobs:
test:
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 test
Acceptance Criteria:

[ ] Workflow runs npm test.

[ ] All unit tests pass.

Priority: Critical
Labels: devops, ci

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions