Skip to content

feat: DisputeStatusBadge component with snapshot tests and Vitest setup #153

feat: DisputeStatusBadge component with snapshot tests and Vitest setup

feat: DisputeStatusBadge component with snapshot tests and Vitest setup #153

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
# 1️⃣ Checkout repo
- name: Checkout repository
uses: actions/checkout@v4
# 2️⃣ Setup Node.js with npm >= 9
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm' # caches node_modules and package-lock
# 3️⃣ Verify npm version (optional, good for debugging)
- name: Check npm version
run: npm -v
# 4️⃣ Install dependencies
- name: Install dependencies
run: npm install
# 5️⃣ Lint check
- name: Lint check
run: npm run lint
# 6️⃣ Build check
- name: Build check
run: npm run build
# 7️⃣ Run unit tests
- name: Run unit tests
run: npm test