Skip to content

feat: Add npm command caching for faster analysis #70

feat: Add npm command caching for faster analysis

feat: Add npm command caching for faster analysis #70

Workflow file for this run

name: Dev Optimizer CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Self-analyze
run: node dist/index.js analyze --path .
continue-on-error: true