Skip to content

Bump eslint from 8.57.1 to 10.2.0 #32

Bump eslint from 8.57.1 to 10.2.0

Bump eslint from 8.57.1 to 10.2.0 #32

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: ['22', '24', '25']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test
typescript:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Validate TypeScript declarations
run: npm run validate-types
- name: Type check TypeScript example
run: npm run type-check
- name: Test TypeScript example compilation and execution
run: |
npx tsc example.ts
node example.js
rm example.js
- name: Verify TypeScript can consume the package
run: |
echo "import osrmTextInstructions = require('./index'); const compiler = osrmTextInstructions('v5'); console.log('TypeScript import works!');" > test-import.ts
npx tsc --noEmit test-import.ts
rm test-import.ts