feat: DisputeStatusBadge component with snapshot tests and Vitest setup #153
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |