Skip to content

ci: fix npm install ERESOLVE by adding --legacy-peer-deps flag #5

ci: fix npm install ERESOLVE by adding --legacy-peer-deps flag

ci: fix npm install ERESOLVE by adding --legacy-peer-deps flag #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
ci:
name: Type Check & Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22, 24]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Type Check
run: npm run typecheck
- name: Unit Tests + Coverage
run: npm run test:coverage
env:
NANSEN_MOCK: 'true'
- name: Upload coverage
if: matrix.node-version == 20
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
retention-days: 7
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: ESLint
run: npm run lint