fix: resolve CI test failures - use npm install instead of npm ci

This commit is contained in:
2026-02-01 01:50:22 +00:00
parent 28ba988e65
commit afcc1b74e3

View File

@@ -2,29 +2,28 @@ name: CI
on:
push:
branches: [main, master]
branches: [main]
paths:
- 'ai-context-generator-cli/**'
pull_request:
branches: [main, master]
branches: [main]
paths:
- 'ai-context-generator-cli/**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ai-context-generator-cli
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Run lint
run: npm run lint
cache-dependency-path: ai-context-generator-cli/package-lock.json
- run: npm install
- run: npm run build
- run: npm test
- run: npm run lint