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
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