fix: resolve CI test failures - use npm install instead of npm ci
This commit is contained in:
@@ -2,29 +2,28 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'ai-context-generator-cli/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'ai-context-generator-cli/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./ai-context-generator-cli
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
cache-dependency-path: ai-context-generator-cli/package-lock.json
|
||||||
- name: Install dependencies
|
- run: npm install
|
||||||
run: npm install
|
- run: npm run build
|
||||||
|
- run: npm test
|
||||||
- name: Build
|
- run: npm run lint
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: npm test
|
|
||||||
|
|
||||||
- name: Run lint
|
|
||||||
run: npm run lint
|
|
||||||
|
|||||||
Reference in New Issue
Block a user